protegeproject / sparql-query-plugin

Protege Desktop plug-in that provides support for writing and executing SPARQL queries.
12 stars 11 forks source link

SPARQL: Add active ontology as namespace #19

Open sosterwalder opened 9 years ago

sosterwalder commented 9 years ago

It would be great if the currently active ontology (resp. its IRI) would be automatically added to a SPARQL query within the SPARQL Query tab, e.g.

   ...
   PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   PREFIX : <http://www.semanticweb.org/sosterwalder/ontologies/2014/11/untitled-ontology-51#>

Currently this needs to be added by hand each time an ontology gets opened within protege.

matthewhorridge commented 9 years ago

There are a few SPARQL plugins. Please can you clarify which plugin you're using? Also, is this Protege 5?

sosterwalder commented 9 years ago

Yes, it is Protege desktop 5.0.0 beta 15 and 16. We are using the one delivered with Protege that is Protege SPARQL 1.0.0.