Skip to content

Commit

Permalink
Merge pull request #503 from Duke-MatSci/502-update-sio-uris-in-ontology
Browse files Browse the repository at this point in the history
update to use SIO numerical URIs
  • Loading branch information
rashidsabbir authored Jul 18, 2024
2 parents a21c51b + 82f3162 commit 804f549
Show file tree
Hide file tree
Showing 3 changed files with 1,654 additions and 1,443 deletions.
24 changes: 12 additions & 12 deletions ontology/materialsmine.ontology.setl
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
},
{ "@if" : "not isempty(row.unit)",
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasUnit"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:UnitOfMeasurement" }
"owl:onProperty" : { "@id":"sio:SIO_000221"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:SIO_000074" }
}
]
}]
Expand Down Expand Up @@ -240,30 +240,30 @@
},
{ "@if" : "not isempty(row.unit)",
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasUnit"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:UnitOfMeasurement" }
"owl:onProperty" : { "@id":"sio:SIO_000221"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:SIO_000074" }
},
{ "@if" : "not isempty(row.hasInput)",
"@for" : "input in row.hasInput.split(', ')",
"@do" : {
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasInput"},
"owl:onProperty" : { "@id":"sio:SIO_000230"},
"owl:someValuesFrom" : { "@id": "{{input}}" }
}
},
{ "@if" : "not isempty(row.hasAttribute)",
"@for" : "attr in row.hasAttribute.split(', ')",
"@do" : {
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasAttribute"},
"owl:onProperty" : { "@id":"sio:SIO_000008"},
"owl:someValuesFrom" : { "@id": "{{attr}}" }
}
},
{ "@if" : "not isempty(row.duration)",
"@for" : "attr in row.duration.split(', ')",
"@do" : {
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasAttribute"},
"owl:onProperty" : { "@id":"sio:SIO_000008"},
"owl:someValuesFrom" : { "@id": "{{attr}}" }
}
}
Expand Down Expand Up @@ -301,8 +301,8 @@
},
{ "@if" : "not isempty(row.unit)",
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasUnit"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:UnitOfMeasurement" }
"owl:onProperty" : { "@id":"sio:SIO_000221"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:SIO_000074" }
}
]
}]
Expand All @@ -328,7 +328,7 @@
"@graph": [{
"@id": "{{row.uri}}",
"@type" : [
"sio:UnitOfMeasurement",
"sio:SIO_000074",
{"@if" : "row.absolute == 'y'", "@id" : "materialsmine:AbsoluteUnitOfMeasurement"}
],
"rdfs:label" : "{{row.label}}",
Expand Down Expand Up @@ -426,8 +426,8 @@
},
{ "@if" : "not isempty(row.unit)",
"@type" : "owl:Restriction",
"owl:onProperty" : { "@id":"sio:hasUnit"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:UnitOfMeasurement" }
"owl:onProperty" : { "@id":"sio:SIO_000221"},
"owl:hasValue" : { "@id": "materialsmine:unit/{{slugify(row.unit)}}", "rdfs:label" : "{{row.unit}}", "@type" : "sio:SIO_000074" }
}
]
}]
Expand Down
Loading

0 comments on commit 804f549

Please sign in to comment.