Hacker News new | ask | show | jobs
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/

1 comments

SPARQL works on any RDF data, so if you have a bunch of RDF data in RDF files you can use jena's command line utilities to query it.

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/.

Appreciate the answer. It's an interesting domain. I've only just started learning about, tbh.
Awareness of Semantic Web Technology is in general way below what it should be I think given that it solves important problems and there is nothing that solves similar problems being used, instead people just don't really address the problems that Semantic Web Technology solves.

If you are interested in learning more check out: https://gitter.im/linkeddata/chat