namespace issues on using SPARQL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

namespace issues on using SPARQL

Yang Lu-2
Hi, there

I am learning the SPARQL in protege 5.0, but always get errors from the namespace.. Here are the prefix in my query:


The first four prefixs seem good, but the last one (my local ontology) cannot be applied. Every time when I use the prefix "ol:" in the window, it gives me tips like "Expected one of: rdf:type, rdf:subclassOf ........"

The query body is very simple, like:

SELECT ?s ?o
WHERE {?s ol: has ?o }

I have two classes "A" and "B" and one property "has" in the ontology....

Is this issue common in protege 5.0? should I change another version? 

Cheers,

Yang Lu

PHD student in Department of Computing & Information Systems

Melbourne School of Engineering

The University of Melbourne

Parkville, Victoria 3010.


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: namespace issues on using SPARQL

Lorenz Buehmann
The problem is the whitespace between your namespace 'ol:' and the token 'has'. Remove it and it should work.
Hi, there

I am learning the SPARQL in protege 5.0, but always get errors from the namespace.. Here are the prefix in my query:


The first four prefixs seem good, but the last one (my local ontology) cannot be applied. Every time when I use the prefix "ol:" in the window, it gives me tips like "Expected one of: rdf:type, rdf:subclassOf ........"

The query body is very simple, like:

SELECT ?s ?o
WHERE {?s ol: has ?o }

I have two classes "A" and "B" and one property "has" in the ontology....

Is this issue common in protege 5.0? should I change another version? 

Cheers,

Yang Lu

PHD student in Department of Computing & Information Systems

Melbourne School of Engineering

The University of Melbourne

Parkville, Victoria 3010.



_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user