Question

I want to create a simple application using Jena and SPARQL, that inserts, deletes, updates, and queries some OWL/RDF data. I worked on Protégé to create the ontology and noticed SPARQL in it, but I want to run SPARQL queries programatically with Jena in Java.

  1. I saw “Using Jena to create a SPARQL query on DBpedia” and I know how to use SPARQL with Jena, but I want to upload it to server or to work on localhost or whatever.

  2. SPARQL doesn't support operations like update or insert, but only querying. Are there any other languages/methods that support these operations, or should I manipulate data manually in java in each application?

  3. How can I upload my ontology, preferably with something related to Protégé? I tried Protege2Joseki but couldn't get it to work.

  4. Are RDF-stores just for RDF? I am working on OWL files. For example, if I am using MySQL as an RDF-store, would it also work for OWL concepts?

Was it helpful?

Solution

I think that on Stack Overflow you should really ask one question per posting. Asking four questions at once makes it hard for you to indicate when you have got the answer you're looking for.

Answering your questions in turn:

  1. It sounds like you want a endpoint loaded with your queries and ontologies which you and others can query using SPARQL. For this, you can use Joseki.
  2. The SPARQL working group at W3C is currently standardising update extensions to the SPARQL language. Some of the existing query engines, including the one in Jena, already implement the proposed update mechanisms as SPARQL extensions.
  3. I don't understand question 3.
  4. Yes, an RDF-triple store can store OWL, because OWL is a specialisation of RDF that provides additional semantic representations. Many tools, including Jena, provide specialised APIs for storing, retrieving and manipulating OWL constructs stored in RDF triple stores.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top