Questions tagged [jena]

Apache Jena is an open-source Java library for processing "Resource-Description-Framework" (RDF) data in semantic web and linked-data applications. This includes command-line tools for RDF-based applications.

846 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
1k views

Named Graphs v Default Graph behaviour in Apache Jena Fuseki

We are running Apache Jena Fuseki. If we upload graphA and graphB SELECT (COUNT(*) as ?count) FROM <graphA> FROM <graphB> WHERE { ?s ?p ?o . } gives 100 If we upload triples in A ...
Ribeye's user avatar
  • 2,137
6 votes
0 answers
338 views

How do I install Apache Jena/Java on Ubuntu?

total database and Java noob here. Need to start learning how to use Jena (I will probably spend a long time reading the official documentation since It looks decent) but I don't know how to actually ...
guib's user avatar
  • 115
6 votes
0 answers
797 views

Read ontology into GraphX from rdf model

i am trying to build a graph based view of uniprot data using Spark (GraphX) by leveraging the owl/RDF format. I am trying to parse the data using apache jena, but I can't wrap my head around the ...
dilo00o's user avatar
  • 61
6 votes
1 answer
739 views

Jena Text query performance slows down dramatically with large dataset

I am working on querying from a RDF dataset of 2.37 GB with approx 17 million triples in it and lucence index of the dataset is also maintained. I tried text queries of jena-text module which search's ...
Ali Raza's user avatar
  • 1,215
5 votes
0 answers
848 views

Jena tdbloader performance and limits

When trying to load a current Wikidata dump as documented in Get Your Own Copy of WikiData by following the procedure describe in https://muncca.com/2019/02/14/wikidata-import-in-apache-jena/ i am ...
Wolfgang Fahl's user avatar
5 votes
0 answers
220 views

Reliably query SPARQL endpoints and cache results locally

When we query LOD Cloud datasets (using SPARQL queries), we could face connection or server problems. Is there a reliable strategy that helps us to get data properly even in a such situations? I'm ...
Nasreddine's user avatar
4 votes
1 answer
632 views

Reasoning in Apache Jena Fuseki: "Reload" dataset or "trigger" inference

We have an Apache-Fuseki Server running with the following configuration: @prefix : <http://base/#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix tdb2: <http://...
hsteinmueller's user avatar
4 votes
1 answer
3k views

Strange behaviour of findbug with RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT

I have findebug which check find bug in one case and dont fing in another, and i completely do not understand how its connected. So i encounter this RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT and started ...
Wizzard's user avatar
  • 335
4 votes
0 answers
333 views

Generating SPARQL Query from SHACL

I have a specific situation where I need to automatically generate SPARQL queries based on the SHACL schemas of the incoming data. I wonder if Jena or any other semantic tool/library can help do that? ...
MaatDeamon's user avatar
  • 9,370
4 votes
0 answers
378 views

Finding shortest path in Jena

I want to find the path between two resource in DBpedia English SKOS thesaurus by using Jena! I am using the following code, but it returns null, even though nodes seem to have two "skos:broader" ...
Erwarth's user avatar
  • 547
4 votes
0 answers
577 views

JAVA Apache Jena Fuseki: Create Endpoint via API, Retrieve all endpoints via API

i have two questions related to Apache Jena Fuseki. The first one is: I need to create an endpoint using the API (from java code, not from Fuseki UI). For "endpoint" i mean the dataset that fuseki ...
Orazio Contarino's user avatar
4 votes
2 answers
334 views

Property functions in Virtuoso

I am working with Jena and Virtuoso to host some RDF data. I am planning to have Jena as the interface and Virtuoso as the backend storage, since Jena seems to be easier to extend and Virtuoso have ...
abondoa's user avatar
  • 1,605
4 votes
2 answers
1k views

Fuseki Error 500: DatasetGraph.delete(Quad)

I have set up a Fuseki endpoint with the hopes of hitting a Jena SDB database (Truly a MySQL database in the backend) with some SPARQL, both select and update/delete queries. SPARQL select queries ...
Mik Cox's user avatar
  • 300
4 votes
1 answer
1k views

Error SDB connection in Jena

I try to connect Jena with Oracle database using SDB but when I compile code I've got an error and I don't know what that means: Exception in thread "main" org.openjena.riot.RiotException: Code: ...
Texicans's user avatar
3 votes
0 answers
4k views

java.lang.module.ResolutionException:

I am new here. I would like to get some help. I searched but coudl not find an explanation whz I am getting this error: Error occurred during initialization of boot layer java.lang.module....
Chavi's user avatar
  • 31
3 votes
2 answers
2k views

configure fuseki with TDB2 and OWL Reasoner

New to fuseki/jena here. I managed to get fuseki to run with OWLFBRuleReasoner using tdb1 no problem, but can't make it work with tdb2 (http://jena.apache.org/2016/tdb#). I could not find an explicit ...
Eric Boisvert's user avatar
3 votes
1 answer
619 views

Building Geospatial Index when working with JENA FUSEKI

I would like to use the nearby geospatial function which is described as supported here through JENA FUSEKI - https://jena.apache.org/documentation/query/spatial-query.html I need to build the ...
Kris 's user avatar
  • 63
3 votes
0 answers
207 views

Remove invalid N-Quads from file in Jena

I have a file containing N-Quads (using the schema.org vocabulary) and I want to load it into a TDB RDF-store, using Apache Jena's command line tools. The command that I'm using is: tdbloader --loc &...
myName's user avatar
  • 41
3 votes
0 answers
134 views

Federating multiple Fuseki endpoints - authentication

We are running multiple fuseki servers. We want to run Sparql queries using data from any number of them. That means using the SERVICE key word, no problem. How do we set up authentication in Fuseki ...
Ribeye's user avatar
  • 2,137
3 votes
1 answer
382 views

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/", ...
Badman's user avatar
  • 407
3 votes
0 answers
164 views

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 ...
Badman's user avatar
  • 407
3 votes
1 answer
96 views

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) ...
Ravi Kumar's user avatar
3 votes
0 answers
184 views

Can SPARQL (Jena) UPDATEs be parameterized by collections of literals (instead of literals)?

Can I call a parameterized SPARQL UPDATE (as in Jena's ParameterizedSparqlString) to set a property to several e.g. literal values? For instance, I have: Set<String> object = new HashSet<...
Drux's user avatar
  • 11.9k
3 votes
0 answers
364 views

JenaTransactionException: Currently in a transaction (location:/pathtodb/)

I am creating an application backend as with RDF Database. I am using Jena TDB as backend. I am getting this exception com.hp.hpl.jena.sparql.JenaTransactionException: Currently in a transaction (...
Ravi Kumar's user avatar
3 votes
1 answer
1k views

Reasoning with Pellet on SWRL rules in Jena Framework

I am trying to use Jena framework to edit an existing ontology built with Protoge 4.2. i.e. to change property values or add individuals or classes and then do reasoning. Assume in the ontology we ...
Hasti's user avatar
  • 239
3 votes
1 answer
403 views

Is it possible to fire Java methods from Jena SWRL Rules

I am working on a Performance analysis on Ontology based Context Management and Process based Context Management. However, in order to create a similar scenario with the PCM case study, I am required ...
realsaid's user avatar
2 votes
0 answers
77 views

Why does the OSPG.dat file grows so much more than all other files?

Dear Jena Community, I'm running Jena Fuseki Version 4.4.0 as a container on an OpenShift Cluster. OS Version Info (cat /etc/os-release): NAME="Red Hat Enterprise Linux" VERSION="8.5 (...
Elton's user avatar
  • 25
2 votes
0 answers
343 views

Fuseki 4.4 UI - set endpoint for update queries

With Apache Jena Fuseki 4.3.2 it was possible to set/edit the endpoint on the UI to use update queries. Fuseki 4.4 sets the query endpoint, which cannot be changed resulting in an error message on ...
airkangoo's user avatar
2 votes
0 answers
158 views

GeoSPARQL: Calculate distance between two linestrings

Does GeoSPARQL provide functionality to calculate the distance between two linestrings? (Edit: I'm using Jena Fuseki with the GeoSPARQL extension.) The results are not working as expected. Linestring ...
There's user avatar
  • 492
2 votes
0 answers
50 views

Jena leaves mem.FourTupleMap and mem.FourTupleMap.ThreeTupleMap when web application shuts dows

Greeting Jena gurus I wrote a small Jersey (3.0.3) web app loading a model created from a bunch of static files into memory dataset (Jena 4.2.0) ds = DatasetFactory.createTxnMem(); Model m = ...
Eric Boisvert's user avatar
2 votes
0 answers
53 views

How to construct rdf4j Model from oslc4j Domains using rdf4j?

I constructed org.eclipse.lyo.oslc.domains.qm.TestCase and want to transform it into rdf4j Model. Is there a way using rdf4j library? It should be equivalent to JenaModelHelper.createJenaModel(objects)...
Abdelrahman Elattar's user avatar
2 votes
0 answers
208 views

What information does Fuseki DB folder contain

Curious to know what kind of data fuseki DB folder contains (apache-jena-fuseki-2.4.0/DB/). Iam using apache jena fuski 2.4.0 version. Even if I try upload and drop of graphs to fuseki datasets or ...
Bhavya's user avatar
  • 45
2 votes
1 answer
103 views

Is there a way to rewrite INSERT, MODIFY or DELETE sparql using ARQ Jena Algebra?

I found some SPARQL query manipulation only for SELECT, ASK, CONSTRUCT https://jena.apache.org/documentation/query/manipulating_sparql_using_arq.html and https://jena.apache.org/documentation/query/...
Guillermo Coscarelli's user avatar
2 votes
0 answers
123 views

how to load large hdt files using jena

I am working on DBPedia hdt file which its size is 35GB I tried to load this file to model using HDTManager and the code is as below HDT hdt = null; try { hdt ...
Ahmed M Mahdi's user avatar
2 votes
0 answers
22 views

Jena ARQ adding update request element

I am working on an extension in Jena, where I have to add new Update element similar to UpdateModify but the logic is different and I do not want to extend UpdateModify. The UpdateVisitor interface ...
Adrika's user avatar
  • 51
2 votes
0 answers
269 views

How to configure fuseki jena to use a reasoner and TDB + tdb:UnionDefaultGraph

Context i am new to fuseki, i am currently using it in a project, the main idea is: start the server with a pre-defined ontology (turtle file) + a reasoner I process files with python, and for each ...
kam13's user avatar
  • 21
2 votes
0 answers
188 views

Performant method to get triple statistic or count in a Apache Jena Fuseki repository

I have a requirement where I need to count/estimate number of triples in a repository. At the moment I am using SPARQL query to count number of triples in a repository but this is slowing down as size ...
user1566434's user avatar
2 votes
0 answers
159 views

How to add dynamically rdf resource to rdf file in java using Jena?

I have this JFrame : Whenever I clik on add button, JComboBoxes and JLabels will be added to my JFrame. The final JFrame looks like this : The items of JComboBoxes are URIs that I have extracted ...
Yamna's user avatar
  • 21
2 votes
1 answer
196 views

Why is the SPARQL regex() function ignoring the "q" flag?

I'm trying to test if a string is contained in another in a case-insensitive way. The SPARQL expression REGEX ( ?str, ?tok, "iq" ) should do that. The q flag is needed in addition to the i ...
Jaccoud's user avatar
  • 89
2 votes
0 answers
103 views

How to unit test django application using jena-fuseki?

My django application uses sparql with jena-fuseki RDF-database. How should I run my unit tests as thete's hardly any information in availble for creatig in-memory jena database for a django ...
Jaana's user avatar
  • 261
2 votes
0 answers
79 views

SPARQL over custom representation of semantic data

I have a non-standard way of storing and representing semantic data, and I was looking into some possibilities of supporting SPARQL queries. It seems that the best solution is to implement a so-called ...
Tuff's user avatar
  • 51
2 votes
0 answers
110 views

How to force Jena API's findShortestPath method to do BFS on <owl#onProperty> instead of <owl#someValuesFrom>?

I am trying to find the shortest path or a path between two nodes in an ontology using Jena's above mentioned method. Given any two nodes of the ontology, my eventual goal is to create a SPARQL query ...
elixir's user avatar
  • 173
2 votes
1 answer
564 views

Can SHACL validate JSON-LD containing a list of objects?

I'm looking to validate the following JSON-LD using SHACL: { "@context" : { "day" : { "@id" : "test:day" }, "month" : { "@id" : "test:month" }, "myList" : { "@...
Jacob G.'s user avatar
  • 28.7k
2 votes
0 answers
155 views

How to persist jena data transactionally?

I use jena along with fuseki as my sparql server, and use python to perform HTTP request on sparql endpoint to insert/update. I need advice on how to make the process "transactionally" (I searched but ...
Jazzy's user avatar
  • 81
2 votes
0 answers
287 views

Low Performance for SPARQL Queries to Fuseki on TDB

I have bulk loaded the wikidata dump using tdbloader2. And now I am trying to make SPARQL queries. A query like this runs very slowly(can not be finished in more than 24 hours), though it works on ...
Romulus Libertas's user avatar
2 votes
0 answers
71 views

Jena export: Nesting elements or adding Description

I want to export my jena database in file and when i use RDF/XML i am getting the objects with rdf:Description. When i use RDF/XML-ABBREV i am getting my objects with correct tag but they are nested. ...
Bambus's user avatar
  • 1,493
2 votes
0 answers
57 views

Why `DESCRIBE ?subject ?object` and not just `DESCRIBE ?subject`

I have the misfortune of having to maintain some legacy code authored by another programmer; at a certain point the code generates the following SPARQL: DESCRIBE ?subject ?object { SELECT ...
Ben Hillier's user avatar
  • 2,126
2 votes
0 answers
549 views

Can't load data into Jena - Fuseki

I'm using Docker to host a Jena/Fuseki container. I have a very outdated Fuseki instance on another server that I would like to migrate the data from. I've backed up the old server into a .nq file, ...
user1209675's user avatar

1
2 3 4 5
17