I have created an ontology using Protege 3.4.8 and have also hosted the OWL file on the local server.

I would now like to create a C#.NET application that fetches some data from a MySQL database, sends these data to the OWL and query on them using SPARQL rules. (I know SPARQL works on RDF only).

What I want to know is that should I create something like a SPARQL endpoint for my ontology? If so, then how do I do it? Or is there some other solution?

If I have to create the C#.NET application to work with the SPARQL, what all so I need? Is there any special mechanism? Any good tutorials/documentations available?

asked 07 Dec '12, 01:59

George%20Abraham's gravatar image

George Abraham
25918
accept rate: 16%

edited 07 Dec '12, 10:41


Are you aware of the RDB2RDF project ( http://www.w3.org/2001/sw/rdb2rdf/ ) eg. http://d2rq.org/ and http://www.revelytix.com/content/spyder

For C# - I believe http://www.dotnetrdf.org/content.asp?pageID=API is very competent (although never used it personally) eg. working with loaded ontologies - http://www.dotnetrdf.org/content.asp?pageID=Ontology%20API

SPARQL queries -http://www.dotnetrdf.org/content.asp?pageID=Querying%20with%20SPARQL

permanent link

answered 07 Dec '12, 05:32

Sweet%20Burlap's gravatar image

Sweet Burlap
2.7k38
accept rate: 18%

@Sweet Burlap The dotnetrdf link was quite useful. Regarding the RDB2RDF project, I wasn't aware of it, though I had heard of D2RQ. I will go through them and try to understand it.

W.r.t the ontology that I have already created in Protege, do I have to create some SOARQL endpoint to query on it or can it be done with dotnetrdf?

(07 Dec '12, 10:40) George Abraham George%20Abraham's gravatar image
2

@George Abraham If you have a RDF/OWL file created with Protege you should be able to load it with dotNetRDF and query it in-memory, see the documentation that @Sweet Burlap linked. There should be no need to use an external SPARQL endpoint unless your ontology is large (million triples or larger). If you have specific questions on dotNetRDF, RDB2RDF etc once you start experimenting please ask them as new questions

(07 Dec '12, 15:29) Rob Vesse ♦ Rob%20Vesse's gravatar image

@Rob Vesse That was the clarification that I was looking for. I will go through it and post some specific queries, in case the need arises. Thanks.

(07 Dec '12, 19:51) George Abraham George%20Abraham's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,276
×866
×599
×137

question asked: 07 Dec '12, 01:59

question was seen: 1,084 times

last updated: 07 Dec '12, 19:51