Questions tagged [apache-jena]

Apache Jena is a free and open source Java framework for building Semantic Web and Linked Data applications.

This is a synonym for the Jena tag.

Apache Jena Homepage

Links

185 questions
0
votes
0 answers

RDF or relational model, preferred development in Java

I am planning to develop a web application in Java which could integrate: RDF data model (Protege 5) + Jena Engine + SPARQL or Relational data model + MySQL + ORM library (such as MyBatis). I wonder which development could be faster considering…
aloplop85
  • 892
  • 3
  • 16
  • 40
0
votes
1 answer

Jena connection to external databases

I have read some articles commenting about the Apache Jena engine and I have found it really interesting. At their site I have found that in order to store the triples, TDB could be used. In my case, I would like to know if, from a Jena application…
aloplop85
  • 892
  • 3
  • 16
  • 40
0
votes
1 answer

Iterate using Apache Jena ExtendedIterator on Graph with big amount of triples

I'm generating Apache Jena Graph from DBpedia dumps and now I want iterate through all "dbpedia-owl:abstract". So I do something like this: ExtendedIterator iterator = Graph.find(Node.ANY, NodeFactory.createURI("dbpedia-owl:abstract"),…
Yevhen Tienkaiev
  • 108
  • 4
  • 13
0
votes
0 answers

is there any sparql vocab parser available for java so I can use that to read SPARQL and create JPA criteria out of it

Hi I want to accept sparql from my exposed rest services for adhoc queries the user wants to issue .My current framework is based on spring data rest and jpa which does most of the heavy lifting for exposes HAL based endpoints but I need to provide…
Gaurav Rawat
  • 1,294
  • 1
  • 25
  • 52
0
votes
2 answers

SPARQL query hierarchical data using rdf and tpl

I am a bit new to sparql Query and I am having a lot of trouble producing a simple data set. Basically here's what I am trying to do. Given the following data structure: Data -Composition -ElementName:"A" -Value …
0
votes
0 answers

Reading an Ontology with Jena In a Dynamic Web Project

So, I have a Java Project with Jena that reads an Ontology (With several imports) and I'm trying to port it into a Dynamic Web Project. The problem is that, in the DWP, the program cant read the ontology imports. I dont know why, but it always give…
LokiNkc
  • 55
  • 1
  • 9
0
votes
1 answer

DBPedia (de) data with JENA: character encoding errors ("not unicode")

I try to acces DBpedia (de) data on my local machine. Having downloaded and unzipped some ttl-Files I tried to test a very simple SPARQL query. PREFIX rdf: PREFIX skos:…
cis
  • 1,259
  • 15
  • 48
0
votes
1 answer

Jena Sparql only return direct superclass of instance

I'm using Jena in Java with Pellet as the reasoner. Now I need to query the class of a specific URI, but the problem is is that I don't know before hand what kind of instance it is, in what kind of class hierarchy, so I can't use filter options.…
vincent kleine
  • 724
  • 1
  • 6
  • 22
0
votes
1 answer

java "OutOfMemory Error" Jena application

I am trying to use Jena's read method to read big size datasets(more than 1 gb) yet I am receiving out of memory error. I tried increasing tomcat heapsize (-Xmx parameter) up to 2048, also the same parameter in eclipse.ini file. However I wasn't…
emrahozkan
  • 193
  • 1
  • 3
  • 15
0
votes
2 answers

Jena and Pellet search on label returns error

I've been at this for a few hours now, trying to get Pellet to work with Jenna. Now I finally got to the point it was working. Querying classes and inferenced classes is going well. For example: SELECT * WHERE { ?x rdf:type uni:Adult} However when…
vincent kleine
  • 724
  • 1
  • 6
  • 22
0
votes
1 answer

Using Jena in Eclipse Plugin

I'm trying to use the Jena libraries from inside an eclipse plugin. If I use it normally, I can write code like this: public static void main(String[] args) { Query query = QueryFactory.create("SELECT * {} LIMIT 10"); //…
pNRuag
  • 63
  • 5
0
votes
2 answers

Error while querying DBPedia using Apache Jena

import java.sql.ResultSet; import java.sql.SQLException; import com.hp.hpl.jena.query.QueryExecution; import com.hp.hpl.jena.query.QueryExecutionFactory; import com.hp.hpl.jena.query.QueryFactory; import com.hp.hpl.jena.query.QuerySolution; import…
Rituraj Singh
  • 579
  • 1
  • 5
  • 16
0
votes
1 answer

Apache Jena ARQ string representation

I have a Apache Jena ARQ SPARQL query of the form SELECT DISTINCT (count(*) AS ?rowCount) ...... The rowCount value is coming in as 1^^http://www.w3.org/2001/XMLSchema#integer This is causing problems in parsing the integer value , how do I…
user1965449
  • 2,849
  • 6
  • 34
  • 51
0
votes
1 answer

apache-jena-2.12.1 : getSubClass can't read all subclass

i learning jena for websemantic. I was tried made a function getAllSubClass for read ontology(.owl) which i made. level1->level2 subclass level1->level3 subclass level2->level4 subclass level3->level5 subclass level4 this my code : public void…
Bima Wijaya
  • 183
  • 2
  • 16
-1
votes
1 answer

Java jena fuseki set OntModelSpec pellet reasoner

the following code is used to send rdf data to a sparql endpoint. It has worked fine until i've tried to add a reasoner to the OntoModel. Now the compiler says: "cannot convert from com.hp.hpl.jena.ontology.OntModelspec to…
1 2 3
12
13