|
|
|
|
|
by dynamite-ready
2078 days ago
|
|
SPARQL I've heard of, but what are OWL and RDF exactly?
As for SPARQL, I know of it's association with Wikimedia data, but I'm guessing you're thinking of data sources other than Wikipedia? Edit - Ah... https://www.w3.org/OWL/ |
|
RDF is a technology for encoding semantic tripple graphs, basically a set of {object_id}-{property_id}-{value} - where value can be literal or an identifier.
OWL is a way to specify types and classes for RDF data, and relationships between them.
SPARQL is a way to query RDF data.
So you would in OWL say that you have a class Condition, and then define proprerties on the Condition class that can be used to associate specifc measurements with the condition, and then you would have a Measurement class to capture actual measurement of blood samples.
Then you would create instances of conditions in RDF using the properties and classes defined in your OWL.
Then when you measure bloodwork you encode it as RDF.
And then you would use SPARQL to query the RDF for conditions matching the bloodwork.
Technically the OWL is optional but if you don't use OWL you need some other way to define types and properties. Wikipedia for example does not use OWL and use their own mechanisms.
The benefit of OWL is that SPARQL reasoning (i.e. subclass/subproperty handling) for OWL is well defined where with Wikidata there is basically no reasoning and you have to do reasoning in your SPARQL query (manually ask for instances of subclasses).
For modelling measurements, have a look at the Semantic Sensor Network Ontology https://www.w3.org/TR/vocab-ssn/.