Skip to main content

Posts

Showing posts from May, 2019

Trial of SPARQL on GraphDB

I used the OWL ontology files from  Allen Brain Atlas (ABA) Adult Mouse Brain Ontology Then used SPARQL Query on GraphDB http://localhost:7200/import#user First you need to Import the file using Import  →  RDF  →  Server Files Then use SPARQL Query & Update - http://localhost:7200/sparql Sample SPARQL query that I used: select distinct ?o where {   ?s ?p ?o .   filter contains(?o,"Cerebral cortex")         #-- the important line } limit 100 Result: 1 Cerebral cortex, layer 5 2 Cerebral cortex 3 Cerebral cortex, layer 2-3 4 Cerebral cortex, layer 6a 5 Cerebral cortex, layers 1-6b 6 Cerebral cortex, layer 1 7 Cerebral cortex, layer 6 8 Cerebral cortex, layer 3 9 Cerebral cortex, layer 2 10 Cerebral cortex, layer 4 Schema.org - has more RDF / triples:  https://schema.org/docs/developers.html Another useful link:  Ontol...