Questions tagged [rdf4j]

Eclipse RDF4J is a Java framework for working with RDF, SPARQL, and OWL. It offers a set of libraries and APIs for parsing, writing, scalable storage and reasoning, as well as a Workbench and Server application for deployment of RDF databases. This tag should be used for all questions regarding use of the RDF4J libraries and tools.

Eclipse RDF4J is a Java framework for parsing, writing, storing, querying and reasoning with RDF, SPARQL, and OWL. It offers a set of libraries and APIs for parsing, writing, scalable storage and reasoning, as well as a Workbench and Server application for deployment of RDF databases.

Eclipse RDF4J is the successor of the OpenRDF Sesame project.

For more information see the RDF4J community website.

155 questions
1
vote
1 answer

RDF4J rdf lucene configuration

I have been trying for some time to configure my sesame RDF repository (at the moment is called RDF4j) in order to use full text queries. I did not find much documentation about this configuration, I think that I need to create a template file so…
Hibernator
  • 33
  • 8
0
votes
0 answers

org.eclipse.rdf4j.rio.RDFWriter, how to set base namespace when writing document

I am using the rdf4j library to export xml files. I use org.eclipse.rdf4j.rio.RDFWriter to save it in a file and I need to define the base namespace. So I expect to have something like :
Abdelghani
  • 455
  • 2
  • 9
  • 19
0
votes
1 answer

Loading turtle files on GraphDB using RDF4J

I want to upload turle files on GraphDB using RDF4J framework. Any suggestion will be highly appreciated. I tried the code below (note: I am not professional in Java). There is no error but I cannot see the data on GraphDB. String repositoryUrl =…
0
votes
1 answer

Getting all the Owl classes in an Owl/RDF schema using RDF4J

I have developed a library which shows the graph of an Owl/RDF ontology using Jena, but I would like to be able to do the same thing using RDF4J because there are some limitations in Jena regarding which kind of Owl/RDF schema can be read. I am able…
Hervé Girod
  • 465
  • 3
  • 12
0
votes
0 answers

Ontotext Graphdb RDF4J API behind an ingress/proxy

I am experimenting with running a GraphDB server behind a proxy and facing a challenge. The GraphDB is installed as a K8 stateful set with the following ingress rule. Example: http://mygraphdb.com/graphdb-int/* ==> URL rewrite ==>…
0
votes
1 answer

SPARQL - CONSTRUCT Query Performance Problem

i've to query a set of statements before i create a new version of an object with the same identifier. With the result i analyse the changes and reuse referenced objects, if the haven't changed. But the following query is aweful and very slow. if…
naturzukunft
  • 79
  • 1
  • 8
0
votes
1 answer

Add triple statement (SimpleStatement) using rdf4j library

I try to add a statement to an existing *.ttl file I can add a required text but in some different structure: InputStream in = new FileInputStream("62692504.ttl"); Model model = Rio.parse(in, RDFFormat.TURTLE…
andy_bu
  • 113
  • 2
  • 13
0
votes
1 answer

How to pass variable from java to turtle file?

I have a project with the structure: -config -repositories -test-repo.ttl The test-repo.ttl file looks like this: @prefix lookup: . @prefix pathfinder:…
Ian Kurtis
  • 137
  • 7
0
votes
1 answer

Is it possible to create a Sail repository with sparql endpoints?

I have config.ttl file for a local GraphDB SailRepository but I also want to access it not only via direct java invocation but also via SPARQL endpoints. My config.ttl file looks like this: # RDF4J configuration template for a GraphDB Free…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
0 answers

How to setup a SPARQL endpoint for a SailRepository in Java?

I have following code to create a local SailRepository for GraphDB: //Create local repo repositoryManager = new LocalRepositoryManager(baseDir); repositoryManager.init(); if (repositoryManager.hasRepositoryConfig("test")) throw new…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
0 answers

A command from the RDF4J framework is throwing an error

When running the following commands, an error is thrown by the add command. The rdf4j framework is used for communicating with a graphdb Knowledge Base: import org.eclipse.rdf4j.model.Model; Model model; //statements have been added to the model …
zoe vas
  • 281
  • 9
  • 25
0
votes
0 answers

RDF4J in Android AppInventor

I'm trying to integrate RDF4J library in an AppInventor project. Every time I get the following error: org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF format object Turtle (mimeTypes=text/turtle, application/x-turtle;…
Antus
  • 1
  • 1
0
votes
1 answer

org.eclipse.rdf4j.rio.UnsupportedRDFormatException for Turtle format

I'm facing a problem using RDF4J, as I get "org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF format object Turtle" error. Following https://stackoverflow.com/a/40920378/17731560 and…
Antus
  • 1
  • 1
0
votes
1 answer

GraphDB post Sparql-File Error: Handler dispatch failed; nested exception is java.lang.StackOverflowError

When posting a correct big Sparql-File ( containing deletes and updates) using curl, curl -X POST --data-binary @hashtag.sparql -H "Accept: application/rdf+xml" -H "Content-type: application/sparql-update" …
Only X
  • 37
  • 1
  • 6
0
votes
0 answers

What is the easiest way to convert a query from an Update query to a Construct query using RDF4J?

I am trying to implement "dry run" functionality in my application for users who want to see what the result of a SPARQL Update query would be. Does RDF4J provide an easy way to convert an Update query to a Construct query so that I can display the…
B. Smith
  • 1,063
  • 4
  • 14
  • 23