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
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,276
  • 1
  • 18
  • 40
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
  • 435
  • 3
  • 13
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
  • 1
  • 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
  • 367
  • 2
  • 13
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…
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
  • 367
  • 2
  • 13
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
  • 945
  • 1
  • 9
  • 36
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
  • 1
  • 6
3
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,344
  • 3
  • 19
  • 38
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
  • 3,676
  • 2
  • 17
  • 32
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…
2
votes
1 answer

Delete blank node from ontology through SPARQL UPDATE

I am storing some data in my ontology model made in protege with help of a SPARQL UPDATE 'insert' operation. Below is the update query. PREFIX test: insert { []…
Usman Khan
  • 117
  • 10
2
votes
1 answer

SPARQL Path between two nodes

Given a graph: @prefix da: . @prefix on: . da:Shenaz on:husband da:Javed . da:Rita on:friend da:Noor ; on:sister da:Tom . da:Noor on:sister da:Shenaz . da:Javed on:child …
Noor
  • 18,061
  • 35
  • 123
  • 236
2
votes
0 answers

What is implementation of Client API to interact with Hydra+JsonLd Web API?

I think they (API Platform) are developing server side implementation using JsonLd + Hydra .If they are doing at server side .How are they implementing Client side API to interact with this Web(Server Side) API?
Badman
  • 367
  • 2
  • 13
2
votes
1 answer

How to handle write errors in Apache Jena?

Imagine I have the following code for inserting a record into Apache Jena database (TBD): private fun createPersonLogic(ds: Dataset, email: String, nick: String) { ds.begin(ReadWrite.WRITE) val model = ds.defaultModel val uuid =…
Mentiflectax
  • 13,367
  • 41
  • 152
  • 285
1
2 3
12 13