How to use SPARQL to query OBO on Protege
0
3
Entering edit mode
4.4 years ago
pacman ▴ 70

Hello, I have downloaded an ontology for chemical structure in OBO format ( Classyfire) , but I found it difficult to extract information on Protege by using SPARQL and SNAP-SPARQL. Some Annotations property has rdf and owl classes (e.g rdf:type owl:class), but most of them don't have one. I just need to extract the id of the class if they belong to certain subclass/superclass, but I am not able to come up with a query to can do that- I don't know how to define the id instance.
For Example:
'Organic compounds'

  • 'Organic compounds' id "CHEMONTID..."^^xsd:string
  • 'Organic compounds' has_obo_namespace "chemont"^^xsd:string
  • 'Organic compounds' rdfs:label "Organic compounds"^^xsd:string
  • Class:'Organic compounds'

I am new to web ontology and SPARQL so I would appreciate any help I can get.

ontology protege OBO RDF SPARQL • 1.5k views
ADD COMMENT

Login before adding your answer.

Traffic: 1738 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6