aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/metadata.py45
1 files changed, 27 insertions, 18 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index fff458c..88a6d32 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -83,32 +83,41 @@ CONSTRUCT {
results.serialize(format="json-ld")
)
frame = {
- "@context": PREFIXES | {
- "data": "@graph",
- "type": "@type",
- "id": "@id",
- "inbredSet": "ex:belongsToInbredSet",
- "description": "dct:description",
- "created": "dct:created",
- "normalization": "gnt:usesNormalization",
- "classifiedUnder": "xkos:classifiedUnder",
+ "@context": {
"accessRights": "dct:accessRights",
"accessionId": "dct:identifier",
- "title": "dct:title",
- "label": "rdfs:label",
+ "acknowledgement": "gnt:hasAcknowledgement",
"altLabel": "skos:altLabel",
- "prefLabel": "skos:prefLabel",
- "contactPoint": "dcat:contactPoint",
- "organization": "foaf:Organization",
- "info": "ex:info",
"caseInfo": "gnt:hasCaseInfo",
- "geoSeriesId": "gnt:hasGeoSeriesId",
+ "classifiedUnder": "xkos:classifiedUnder",
+ "contactPoint": "dcat:contactPoint",
+ "created": "dct:created",
+ "data": "@graph",
+ "dcat": "http://www.w3.org/ns/dcat#",
+ "dct": "http://purl.org/dc/terms/",
+ "description": "dct:description",
+ "ex": "http://example.org/stuff/1.0/",
"experimentDesignInfo": "gnt:hasExperimentDesignInfo",
+ "foaf": "http://xmlns.com/foaf/0.1/",
+ "foaf": "http://xmlns.com/foaf/0.1/",
+ "geoSeriesId": "gnt:hasGeoSeriesId",
+ "gnt": "http://genenetwork.org/term/",
+ "id": "@id",
+ "inbredSet": "ex:belongsToInbredSet",
+ "info": "ex:info",
+ "label": "rdfs:label",
+ "normalization": "gnt:usesNormalization",
"notes": "gnt:hasNotes",
+ "organization": "foaf:Organization",
+ "platform": "ex:platform",
+ "prefLabel": "skos:prefLabel",
"processingInfo": "gnt:hasDataProcessingInfo",
- "acknowledgement": "gnt:hasAcknowledgement",
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
+ "skos": "http://www.w3.org/2004/02/skos/core#",
"tissue": "ex:tissue",
- "platform": "ex:platform",
+ "title": "dct:title",
+ "type": "@type",
+ "xkos": "http://rdf-vocabulary.ddialliance.org/xkos#",
},
"type": "dcat:Dataset",
}