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
0
votes
0 answers

Multiple filters in SELECT query using rd4j

I am trying to filter through the start date and end date using multiple filters within one query. I want to find how many terms are within 3 months of ending, so the SPARQL query I am trying to recreate is: SELECT (COUNT(?term) AS ?count) WHERE {…
vaishalir
  • 55
  • 3
0
votes
1 answer

How to construct long queries using rdf4j

I am trying to construct a long query using the rdf4j library and would like to use the count function that is available with SPARQL. The original SPARQL query looks like this: SELECT (COUNT(?letter) AS ?count) WHERE { \ ?letter a :Letter . \ …
vaishalir
  • 55
  • 3
0
votes
0 answers

Slow SPARQL query with rdf:Seq

I'm trying to retrieve all elements of a rdf:Seq with SPARQL. The RDF structure is as follows. A subproject with a rdf:Seq of timeclaims and the individual timeclaim information. The list of timeclaims for a subproject can be of any…
0
votes
1 answer

Is it possible to remove logs in GraphDB?

I have a GraphDB application with a huge folder size in "./logs". I notice there are 3 types of file logs: error, main, and query. I understand We can delete those but I could find any mention in the documentation. Is it safe to remove them?
Carlo
  • 11
  • 1
0
votes
1 answer

Upload Turtle files by Post method in Python

I am trying to send a turtle file via a Python script using REST api to the local repository but the System is returning the following error MALFORMED DATA: Illegal subject value: "-"^^http://www.w3.org/2001/XMLSchema#integer [line 1] 400 The…
Gaurav
  • 37
  • 8
0
votes
1 answer

IS there a simple SPARQL Construct query to select all subject related statements by certain predicate value

I am a complete Semantic Web beginner and RDF4J beginner. Currently i have some RDF xml and i can not write a simple construct query to select all related statements by subject value. I have this:
0
votes
0 answers

Connect to GraphDB instance with rdf4j

I have an exposed GraphDB instance in an ip address and port with http protocol. I want to make it more secure so I decided to expose it through https and a domain (with the port included in it). The problem is when I try to call the instance from…
0
votes
2 answers

DELETE WHERE not working with property path sequences sparql

PART 1: These are the triplets which already exists. "name"^^xsd:string "place"^^xsd:string "name1"^^xsd:string
harish chava
  • 252
  • 2
  • 19
0
votes
0 answers

Advantages of using container vs no container in sparql

Normal Data Insertion { :sub :pred 'o1'. :sub :pred 'o2'. :sub :pred 'o3'. } Data insertion using container { :sub :pred :_b. :_b rdf:type rdf:Seq. :_b rdf:_1 'o1'. :_b rdf:_2 'o2'. :_b rdf:_3 'o3'. } When I used the basic…
harish chava
  • 252
  • 2
  • 19
0
votes
1 answer

Is there an easy way to ingest OBO formatted files into RDF4J without using OWL API?

I want to be able to be able to ingest OBO formatted files into RDF4J in addition to Turtle, RDF/XML, etc... It looks like OWL API has some parsers to do so but I am trying to avoid using OWL API. Are there other known ways of doing this?
B. Smith
  • 1,063
  • 4
  • 14
  • 23
0
votes
1 answer

SPARQL insert query and create query don't work via SPARQLRepository and GraphDB

I use a GraphDB Repository and want to execute some querys via Java using SPARQLRepository. It works fine when I just read with the Queries. But when I have a query "Create graph :example" or an insert and delete query, it doesn't work. When I…
Kathi
  • 21
  • 5
0
votes
1 answer

How to stack SpinSail on top of GraphDB remote repository

I am using GraphDB to store my triples and need to stack SpinSail component upon the GraphDB to support Spin Rules along with all the rest of the features that GraphDB supports by default. So far I have managed to create a SailRepository on the…
Dimos Nt
  • 67
  • 1
  • 8
0
votes
1 answer

RDF4J List of Valid Triple Indexes

is there a list of valid triple indexes to initialize a nativestore? I searched in the github repo rdf4j-storage but couldn't find an enumeration or something similar.
0
votes
1 answer

rdf4j lucene over http

I'm having trouble using the built-in lucene index via RDF4J over HTTP. I've followed the following steps: Using rdf4j-workbench, I created a repository using the type Native Java Store with RDFS+SPIN+Lucene On the client, I use: repo = new…
0
votes
1 answer

Implement custom RDF4J function for GraphDB

I found in the RDF4J documentation here http://docs.rdf4j.org/custom-sparql-functions/ that it supports creating custom functions with Java. I attempted to implement this palindrome example and run the example query against GraphDB. I am using the…
medium
  • 4,136
  • 16
  • 55
  • 66