Skip to content

Commit

Permalink
implementation of the swat4ls mapping work into a context file
Browse files Browse the repository at this point in the history
  • Loading branch information
proccaserra committed Jul 19, 2024
1 parent 66e0aca commit 37d0b80
Show file tree
Hide file tree
Showing 13 changed files with 521 additions and 0 deletions.
67 changes: 67 additions & 0 deletions isatools/resources/json-context/w3c/isa_assay_w3c_context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"sosa": "http://www.w3.org/ns/sosa/",
"dcterms": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Assay": "prov:Activity",
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"name": {
"@id": "?:?",
"@type": "xsd:string"
},
"description": {
"@id": "dcterms:description",
"@type": "xsd:string"
},
"filename": {
"@id": "prov:atLocation",
"@type": "prov:Location"
},
"measurementType": {
"@id": "prov:type",
"@type": ["xsd:string","sosa:ObservableProperty"]
},
"technologyType": {
"@id": "prov:type",
"@type": "xsd:string"
},
"technologyPlatform": {
"@id": "prov:instrument",
"@type": "prov:Agent"
},
"materials": {
"@id": "prov:used",
"@type": "prov:Entity"
},
"othermaterials": {
"@id": "prov:used",
"@type": "prov:Entity"
},
"characteristicCategories": {
"@id": "prov:type",
"@type": ["xsd:string","sosa:ObservableProperty"]
},
"dataFiles": {
"@id": "prov:atLocation",
"@type": "prov:Location"
},
"processSequence": {
"@id": "prov:wasAssociatedWith",
"@type": "prov:Activity"
},
"unitCategories": {
"@id": "prov:type",
"@type": "qudt:Unit"
},
"comments": {
"@id": "rdfs:comment",
"@type": "xsd:string"
}
}
}
27 changes: 27 additions & 0 deletions isatools/resources/json-context/w3c/isa_data_w3c_context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dcterms": "http://purl.org/dc/terms/",
"dcat": "https://www.w3.org/TR/vocab-dcat-3/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"Data": "dcat:Dataset",
"type": {
"@id": "prov:type",
"@type": "xsd:string"
},
"identifier": {
"@id": "prod:id",
"@type": "xsd:uri"
},
"name": {
"@id": "rdfs:Label",
"@type": "xsd:string"
},
"comments": {
"@id": "rdfs:comment",
"@type": "xsd:string"
}
}
}
25 changes: 25 additions & 0 deletions isatools/resources/json-context/w3c/isa_factor_w3c_context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"sosa": "http://www.w3.org/ns/sosa/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Factor": "sosa:ObservableProperty?",
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"factorName": {
"@id": "?:?",
"@type": "xsd:string"
},
"factorType": {
"@id": "prov:type",
"@type": "xsd:uri"
}
},
"comments": {
"@id": "rdfs:comment",
"@type": "xsd:string"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dcterms": "http://purl.org/dc/terms/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Material": "prov:Entity",
"type": {
"@id": "prov:type",
"@type": "prov:value"
},
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"name": {
"@id": "rdfls:Label",
"@type": "xsd:string"
},
"characteristics": {
"@id": "prov:type",
"@type": "prov:value"
},
"roles": {
"@id": "prov:hadRole",
"@type": "prov:Role"
},
"derivesFrom": {
"@id": "prov:wasDerivedFrom",
"@type": "prov:Entity"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dcterms": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Organization": "prov:Organization",
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"name": {
"@id": "foaf:name",
"@type": "xsd:string"
},
"description": {
"@id": "dcterms:description",
"@type": "xsd:string"
},
"postalAddress": {
"@id": "prov:atLocation",
"@type": "prov:Location"
},
"roles": {
"@id": "prov:hadRole",
"@type": "prov:Role"
}
}
}
45 changes: 45 additions & 0 deletions isatools/resources/json-context/w3c/isa_person_w3c_context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Person": "prov:Person",
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"firstName": {
"@id": "foaf:firstName",
"@type": "string"
},
"lastName": {
"@id": "foaf:lastName",
"@type": "string"
},
"midInitials": {
"@id": "foaf:name",
"@type": "string"
},
"email": {
"@id": "foaf:mbox",
"@type": "uri"
},
"phone": {
"@id": "foaf:phone",
"@type": "string"
},
"fax": {
"@id": "",
"@type": "string"
},
"affiliation": {
"@id": "foaf:member",
"@type": "prov:Organization"
},
"roles": {
"@id": "prov:hadRole",
"@type": "prov:Role"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"dcterms": "http://purl.org/dc/terms/",
"sdmx-measure": "http://purl.org/linked-data/sdmx/2009/measure#",
"qudt": "http://qudt.org/schema/qudt",
"cube" : "http://purl.org/linked-data/cube#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"ParameterValue": "qb:MeasureProperty",
"category": {
"@id": "prov:type",
"@type": "xsd:string"
},
"value": {
"@id": "prov:value",
"@type": ["xsd:string","xsd:float"]
},
"unit": {
"@id": "qudt:unit",
"@type": "qudt:Unit"
}
}
}
54 changes: 54 additions & 0 deletions isatools/resources/json-context/w3c/isa_process_w3c_context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dcterms": "http://purl.org/dc/terms/",
"xkos": "http://rdf-vocabulary.ddialliance.org/xkos#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Process": "prov:Activity",
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"name": {
"@id": "rdfls:Label",
"@type": "xsd:string"
},
"description": {
"@id": "dcterms:description",
"@type": "xsd:string"
},
"date": {
"@id": "prov:wasStartedate",
"@type": "xsd:date"
},
"executesProtocol": {
"@id": "prov:wasAssociatedWith",
"@type": "prov:Plan"
},
"parameterValues": {
"@id": "prov:type",
"@type": "prov:value"
},
"previousProcess": {
"@id": "xkos:previous",
"@type": "prov:Activity"
},
"nextProcess": {
"@id": "xkos:next",
"@type": "prov:Activity"
},
"inputs": "prov:used",
"outputs": "prov:generated",
"performer": {
"@id": "prov:wasAttributedTo",
"@type": "prov:Person"
},
"comments": {
"@id": "rdfs:comment",
"@type": "xsd:string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dcterms": "http://purl.org/dc/terms/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Protocol": "prov:Plan",
"filename": {
"@id": "prov:atLocation",
"@type": "prov:Location"
},
"identifier": {
"@id": "prov:id",
"@type": "@id"
},
"title": {
"@id": "dcterms:title",
"@type": "xsd:string"
},
"description": {
"@id": "dcterms:description",
"@type": "xsd:string"
},
"version": {
"@id": "dcterms:hasVersion",
"@type": "prov:value"
},
"components": {
"@id": "prov:agent",
"@type": ["prov:Agent","prov:SoftwareAgent"]
},
"parameters": {
"@id": "prov:type",
"@type": "prov:?"
},
"uri": {
"@id": "prov:atLocation",
"@type": "prov:Location"
},
"publications": {
"@id": "prov:wasAssociatedWith",
"@type": "prov:Communication"
},
"comments": {
"@id": "rdfs:comment",
"@type": "xsd:string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": {
"@language": "en",
"prov": "http://www.w3.org/ns/prov#",
"dcterms": "http://purl.org/dc/terms/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Publication": "prov:Communication",
"identifier": "prov:id",
"pubMedID": "prov:id",
"doi": "prov:id",
"title": "dcterms:title",
"status": "",
"authorList": "prov:Bundle",
"comments": "rdfs:comment"
}
}
Loading

0 comments on commit 37d0b80

Please sign in to comment.