Skip to content

Commit

Permalink
update osfmap vocab with shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Oct 22, 2024
1 parent 60ca2c2 commit e726600
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/trove/derive/test_osfmap_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def assert_derived_texts_equal(self, expected, actual):
]
}
],
'prov:qualifiedAttribution': [{
'prov:agent': [{'@id': 'https://osf.example/bhcjn'}],
'dcat:hadRole': [{'@id': 'osf:admin-contributor'}],
'qualifiedAttribution': [{
'agent': [{'@id': 'https://osf.example/bhcjn'}],
'hadRole': [{'@id': 'osf:admin-contributor'}],
}],
"dateCopyrighted": [
{"@value": "2021"}
Expand Down
50 changes: 50 additions & 0 deletions trove/vocab/osfmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
FOAF,
OSFMAP,
OWL,
PROV,
RDF,
RDFS,
SKOS,
Expand Down Expand Up @@ -543,6 +544,54 @@
literal('hostingInstitution', language='en'),
},
},
PROV.qualifiedAttribution: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('qualifiedAttribution', language='en')},
},
PROV.agent: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('agent', language='en')},
},
DCAT.hadRole: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('hadRole', language='en')},
},
OSFMAP.usage: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('usage', language='en')},
},
OSFMAP.storageRegion: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('storageRegion', language='en')},
},
OSFMAP.storageByteCount: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('storageByteCount', language='en')},
},
OSFMAP.hasOsfAddon: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('hasOsfAddon', language='en')},
},
OSFMAP.viewCount: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('viewCount', language='en')},
},
OSFMAP.viewSessionCount: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('viewSessionCount', language='en')},
},
OSFMAP.downloadCount: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('downloadCount', language='en')},
},
OSFMAP.downloadSessionCount: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('downloadSessionCount', language='en')},
},
DCTERMS.temporal: {
RDF.type: {RDF.Property},
JSONAPI_MEMBERNAME: {literal('temporalCoverage', language='en')},
},
RDFS.label: {
RDF.type: {RDF.Property},
RDFS.label: {
Expand Down Expand Up @@ -708,6 +757,7 @@
literal('hasCedarTemplate', language='en'),
},
},

###
# values:
OSFMAP['no-conflict-of-interest']: {
Expand Down

0 comments on commit e726600

Please sign in to comment.