1

Based on this: How to extend ontology with other standard ontologies in Protégé?, I am really worried on how to import geosparql in an ontology I just created.

I think that importing geosparql means to import this to my ontology in Protege: http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf

My ontology is Saved As RDF/XML syntax and the file that contains it has a .owl extension.

How to safely import geosparql in my ontology (Protege 5.0.0 beta)?

Community
  • 1
  • 1
gsamaras
  • 71,951
  • 46
  • 188
  • 305

1 Answers1

3

Both .rdf and .owl are acceptable extensions for OWL ontologies saved as RDF/XML.

If your ontology imports the geosparql ontology, the extension is not important - what's important is that Protege can find an ontology whose ontology IRI is http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf.

This can happen in multiple ways: Protege might remember that a local file it has parsed before contains this ontology (the file name is not relevant - this is called IRI redirection or IRI mapping), or it will attempt to download the ontology taking the ontology IRI as a document URL.

In this case, the only constraint is that the ontology IRI is a resolvable URL.

Ignazio
  • 10,504
  • 1
  • 14
  • 25
  • So how should I do it? Create a `geosparql_vocab_all.rdf` file locally on my machine, copy paste what the IRI (http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf) has in that file and import that file, as Joshua's answer shows in my linked question? – gsamaras Mar 26 '16 at 23:06
  • 2
    You don't need to download the file. Just use http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf as in Joshua's answer. – Ignazio Mar 27 '16 at 10:13
  • OK thanks! Hope I am importing the right URI for geosparql. ;p – gsamaras Mar 27 '16 at 15:08