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
6
votes
1 answer

How to resolve IncompatibleClassChangeError interface not implemented

I know the question is asked already but somehow I can't find any convincing solution after googling for about an hour. I am using apache-jena to load RDF model from a url. And I am getting IncompatibleClassChangeError with following message Class…
Ahsan Iqbal
  • 1,422
  • 5
  • 20
  • 39
5
votes
3 answers

Jena TDB java.lang.ExceptionInInitializerError

I'm using Jena TDB for loading an RDF dataset and making SPARQL queries against it. I'm using the following maven dependency: org.apache.jena apache-jena-libs pom
gonephishing
  • 1,388
  • 3
  • 18
  • 45
4
votes
1 answer

How to define very simple own rule in fuseki step by step?

I'm asking your help to understand how to create my own property rules in fuseki. I've read the documentation of Jena and Fuseki about reasoners and rules but I don't understand how to create (step by step) simple rules. And the examples that I've…
Cyril
  • 485
  • 4
  • 15
3
votes
1 answer

Check RDF file syntax using jena

I have a .ttl file that I have written. I am on mac environment. I was wondering how can I use apache jena to check if the file is valid. What terminal commands are needed to do this? I have downloaded the apache jena packet.
user3295864
  • 49
  • 2
  • 9
3
votes
1 answer

Read array of Json-Ld Objects into a Model In Apache Jena.How to retrieve individual objects from Model?

This is Json Array of Object(Student Data) . I am loaded that Json-Ld Data in Jena Model [ { "@context" : { "myvocab" : "http://mywebsite.com/vocab/", "name" : "myvocab:name", …
Badman
  • 407
  • 5
  • 17
3
votes
1 answer

JavaScript for Apache Jena TripleStore

i've build a TDB-Store with Apache Jena and now i want to use the data from my store to implement some nice visualizations. So after all it's necessary to access my TDB with JavaScript. I guess, there are two possibilities to archieve this: No. 1:…
malwin
  • 652
  • 7
  • 18
3
votes
1 answer

Sanitize YAGO files before loading into apache-jena TDB triplestore

I want to use the YAGO 3 rdf triples (yago3_entire_ttl.7z from http://www.mpi-inf.mpg.de/departments/databases-and-information-systems/research/yago-naga/yago/downloads/ ) into the apache-jena triplestore (3.1.0) using tdbloader. The riot tool…
Hubert Schumacher
  • 1,683
  • 1
  • 16
  • 25
3
votes
0 answers

Query through sparql on rdf graph in which object have links(url) and resolve the link and get rdf graph as result

I want query through SPARQL for RDF graph (basically turtle format) and resolve the object if it is url and embed the rdf graph of url in current rdf graph for sparql query. I am doing it through apache jena in java. Any suggestion how to do it. For…
Badman
  • 407
  • 5
  • 17
3
votes
1 answer

Class with custom rule in OWL ontology

I have created an ontology using Protege. Classes - Person Man Woman Properties(Domain / Range) Knows(Person / Person) hasRelationShip(Person / Person) hasParent(Person / Person) hasFather(Person / Man) hasMother(Person /…
Ravi Kumar
  • 993
  • 1
  • 12
  • 37
3
votes
2 answers

How to query a named graph in Apache Jena Fuseki server

I am laoding a .ttl file into the Jena Fuseki server and instead of the default graph I am using the named graph . /home/user/jena-fuseki-1.1.1/./s-put http://192.168.1.38:3030/ds/data http://example/test…
lost Coder
  • 577
  • 2
  • 8
  • 34
3
votes
1 answer

NoClassDefFoundError after deploying project to glassfish using external lib

I've got some troubles probably with adding correctly java libs into my Java EE project. I'm using intellij idea IDE. I want to use an external library in my project (apache jena) and I've added that library using this procedure: Project Structure >…
Crylvarrey
  • 109
  • 2
  • 6
3
votes
1 answer

Convert a Jena ResultSet to Model

I'm trying to convert a ResultSet to a Model in Apache Jena 3.0. Previously I used the ResultSetFormatter.toModel function, but this seems to have been removed. What's the best way currently to get a Model (for serialization to JSON-LD and…
JoelKuiper
  • 4,362
  • 2
  • 22
  • 33
3
votes
1 answer

Load Duplicate RDF triples into Apache Jena Fuseki

I am wondering if there is a way to initiate Apache Jean Fueseki server to accept log duplicate triples. see https://jena.apache.org/documentation/serving_data/ Right now I'm starting Fuseki with the following command ./fuseki-server --update --mem…
Jeff
  • 3,943
  • 8
  • 45
  • 68
2
votes
0 answers

How to see SPARQL query plan

We use EXPLAIN ANALYZE to view a SQL query plan. If there any equivalent of it is available for SPARQL query?
Beautiful Mind
  • 5,828
  • 4
  • 23
  • 42
2
votes
2 answers

For Apache Jena input: Conversion from CSV to RDF Format

I am going to use Apache Jena and it takes RDF as the input format. But I've data in the CSV format. I researched a lot and couldn't find a way to convert it. Does anyone know how to do that efficiently. I have gone thru tools like xml123 but the…
Rajat Agarwal
  • 23
  • 1
  • 3
1
2 3
12 13