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

How to merge two or more models in RDF4J (formerly Sesame)?

In Apache Jena there is a way to append one model to another by just calling model1.add(model2), for example. Is this also possible with RDF4J in case you interpret a model just as a set of statements?
phly
  • 185
  • 1
  • 12
2
votes
1 answer

Does RDF4J Support GeoSPARQL?

I'm using RDF4J workbench: System Information Application Information Application Name RDF4J Workbench Version 2.0.1 Runtime Information Operating System Windows 8.1 6.3 (amd64) Java Runtime Oracle Corporation Java HotSpot(TM) 64-Bit Server…
Greg Cox
  • 287
  • 1
  • 12
2
votes
0 answers

How to Profile Execution of RDF4J Server?

As I indicated in another post, I'm having trouble with some SPIN constructors taking an excessive amount of time to execute quite limited data. I thought I'd take a different approach and see if I can profile the execution of the constructors to…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

Data fabric architecture design - direct SPARQL access or API abstraction

In a data fabric architecture, is it better to give direct access to internal SPARQL databases or to use an API? I am reviewing an architecture for a data fabric. The architecture has a collection of central knowledge graphs hosted behind SPARQL…
PlagTag
  • 6,107
  • 6
  • 36
  • 48
1
vote
0 answers

How can I make sparql queries to the active repository from a graphdb plugin in java/kotlin?

I'm developing a graphdb plugin using graphdb's Plugin API. I need my plugin to retrieve some statements from the current active graphdb repository to process them further. I want to make a query with this format: PREFIX rdf:…
1
vote
2 answers

How to look for the maven repository of a particular class or package

In my Maven project, I need to use a particular class (specifically, org.eclipse.rdf4j.model.util.Values.bnode) However, when I import it in Eclipse it logically complains it couldnt find it. Further, when I look for the Maven repo of rdf4j in…
Abdelghani
  • 455
  • 2
  • 9
  • 19
1
vote
1 answer

Is there a JavaScript implementation of OGC GeoSPARQL functions?

I am aware of various Java implementations of OGC GeoSPARQL standard, provided by RDF4J, Jena, GraphDB and other vendors. Now I am looking for JavaScript libraries that implement whole set of GeoSPARQL functions, or some subset of them. I tried…
RedCrusaderJr
  • 350
  • 1
  • 12
1
vote
1 answer

Access subclassOf/subclassOf level using ForwardChainingRDFSInferencer with SPARQL

I am running some SPARQL queries using the class ForwardChainingRDFSInferencer, which basic constructs an inferencer. For my examples I use the schema.org ontology. My code looks like the following example MemoryStore store = new…
NikSp
  • 1,262
  • 2
  • 19
  • 42
1
vote
1 answer

RDF4j Shacl validation gives different results for Turtle and JSON-LD

I have a problem with RDF4J SHACL validation engine. This is my code where I use shacl rules and example payload files as TTL input: String SHAPES = "rules.ttl"; String DATA = "input.ttl"; ShaclSail shaclSail = new ShaclSail(new…
Krzysztof Majewski
  • 2,494
  • 4
  • 27
  • 51
1
vote
1 answer

Parse portions of SPARQL and reuse them in RDF4j SparqlBuilder

I use some configuration logic to generate Sparql queries with RDF4j and the SparqlBuilder. // prepare selectVariables, prefixes and whereCondition according to configuration SelectQuery mainQuery = Queries.SELECT(selectVariables) …
Federico Bonelli
  • 761
  • 1
  • 7
  • 23
1
vote
1 answer

Limit in SPARQL results

I run a SPARQL query in graphDB from an API REST and I get only the first 1000 rows back. I am not using a LIMIT clause at the end of my query. I found in the documentation that number is a default result set limit but how can it be overridden…
José Abad
  • 11
  • 3
1
vote
0 answers

Accessing GraphDB with RDF4J with an specific user

I'm using RDF4J to add RDF triples to a completely open (Security off) GraphDB instance. I use the RemoteRepositoryManager and it works fine: RepositoryManager repositoryManager = new RemoteRepositoryManager(GraphDBInstanceURL); Repository…
1
vote
0 answers

TupleQueryResultView - Serialization error - Query changes from graphdb using history and versioning plugin

I try to query the changes from graphdb using history and versioning plugin (https://graphdb.ontotext.com/documentation/standard/change-tracking.html). This is the query: var additionsQuery = repositoryConnection.prepareTupleQuery( …
tommi123
  • 11
  • 2
1
vote
1 answer

Explore Graph in RDF4J custom function

I'm trying to implement a plugin for Ontotext GraphDB. I hope it will compute the distance between two entities via breath first search (see GraphDB as an undirected graph). I found RDF4J custom function maybe a good way. public Value…
qkoqhh
  • 13
  • 2
1
vote
1 answer

How to execute a subquery with a different SPARQL endpoint in rdf4j?

I got the following SPARQL query that I am trying to rewrite using the rdf4j sparql builder: SELECT DISTINCT * { SERVICE { SELECT ?ordnanceSurveyRegion WHERE { …
1 2
3
10 11