|
Hi, I have created an Ontology (OWL/RDF File Project) using Protege 3.4.8 and have executed some SPARQL queries using the inbuilt SPARQL engine. I would like to now create a front end for the Ontology using dotNet. For the same I downloaded dotNetRDF and have gone through the User Guide and also tried out successfully some of the basic examples given. However, there is no content available for Protege and dotNetRDF connectivity. How exactly can I read the RDF or OWL File from Protege and execute some SPARQL queries on them? |
|
There is no direct connectivity between Protege and dotNetRDF, however if you have your ontology from Protege saved on disk in a format dotNetRDF can read (RDF/XML, Turtle, NTriples, N3 or RDF/JSON) then you can load it in and query it. Adapting the example from the Querying with SPARQL page slightly:
@Rob Vesse Thanks a lot for the help. So I just need to save the Protege Project as a RDF/XML or export it to NTriple, N3 or Turtle format and then continue with the same...right? @Rob Vesse: Thank You! @Rob Vesse: How do you execute this query using store.ExecuteQuery?? [I am just a novice, so please excuse me for any silly blunders]
I tried the following:
But it is giving this error:
1
@George Abraham If you use prefixed names (aka QNames) such as @Rob Vesse: I seem to have got it working with this query:
But the answer that I am getting is in a cluttered format. I hope that my query is correct? @George Abraham What do you mean by a cluttered format? @Rob Vesse: The answers are coming in this format:
How can I display it in a more readable format like only the values without the namespaces? 1
@George Abraham That's the @Rob Vesse: Thanks a lot for the help.
showing 5 of 11
show 6 more comments
|

