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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

validating typed literals in RDF

given this RDF: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix ex: <http://example.com/>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. ex:bob ex:has '{&...
justin2004's user avatar
2 votes
1 answer
22 views

How to load user-defined rules in a fuseki configuration?

I have been unsuccessful at loading user-defined rules in Apache Fuseki 4.9.0 using the generic rule reasoner. According to the general purpose rule engine configuration parameters, I should be able ...
Nicolas Rouquette's user avatar
0 votes
0 answers
20 views

Use rdf:ID in RDF/XML generated file

We generate a RDF/XML file which has all its resources with the rdf:about attribute. We would like to replace this attribute with rdf:ID. Using apache-jena 3.17.0. We create a resource with model....
mbk's user avatar
  • 1
0 votes
0 answers
21 views

how to get jena to produce json-ld with embedded object, stripping out the blank node id?

How to get json json-ld serialization to produce clean embedded object that strip out blank node identifier such as instead of { "@id" : "biodata:20200005793263#relation-annotation-...
MaatDeamon's user avatar
  • 9,532
0 votes
0 answers
14 views

Is there possible duplicated triples in TDB2?

I'm using Jena TDB2 and I loaded a TDB dataset. I want to know whether TDB will contain two same triples or the loaded triples had been deduplicated when it build the TDB database.
unstuck's user avatar
  • 31
0 votes
0 answers
18 views

How do you actually create new databases with apache jena tdb?

I an complete beginner regarding RDF Stores / Semantic Web so this is rather a basic question. In RDBMS or Neo4j you can create new database with "CREATE DATABASE"-Command. But how does it ...
MichaelJones's user avatar
0 votes
0 answers
10 views

Can't finish clearing TDB graph - JenaTransactionException: end() called for WRITE transaction without commit or abort having been called

I'm trying to clear a moderately large TDB graph, around 13 million triples, so I'm paginating the triples retrieval to avoid OutOfMemory issues. Here's my code: private void clearDataset() { ...
vivss's user avatar
  • 21
1 vote
0 answers
57 views

How can I make tdb2.xloader continue loading when the loading accidentally interrupt?

Apache Version 4.8.0 Question This afternoon I was using tdb2.xloader to load a 120G ttl file into the database, but it was accidentally interrupted halfway, but the loading has reached the POS stage, ...
unstuck's user avatar
  • 31
0 votes
1 answer
30 views

Uploading a .ttl file to Fuseki using Java client - where are my triples in Fuseki?

I have a Fuseki server running in my local Windows 11 Docker Desktop. To load ttl files from java I am following https://jena.apache.org/documentation/rdfconnection/ which gives me code String ...
Harper2021's user avatar
0 votes
0 answers
30 views

How to construct RDF Triples or Knowledge Graphs from Scrapped Data or CSV

So I am new to the world of RDF and Knowledge Graph and I am working on a project where I am using open data to create a tourism site about North Macedonia, I have scrapped data about hotels in Skopje ...
Nisi Zenuni's user avatar
1 vote
0 answers
49 views

ERROR StatusLogger Reconfiguration failed

I download Apache Jena,and follow the tutorial of SPARQL in https://jena.apache.org/tutorials/sparql_query1.html, I type this command: sparql.bat --data=vc-db-1.rdf --query=q1.rq (https://i.stack....
unstuck's user avatar
  • 31
0 votes
0 answers
35 views

Apache Jena not inferencing individual type based on data property

I used Protégé to create a very simple OWL ontology with a class Person a class Adult subclass of intersection between class Person and restriction age exactly 1 xsd:integer[> 17] a class Minor ...
Alessio Rubicini's user avatar
0 votes
0 answers
26 views

What could cause 'Uncompilable source code - Erroneous tree type' error when using Jena OntModel in JDK 17?

There are no errors, but during compilation, it shows "0000000000" and the error message "Uncompilable source code - Erroneous tree type: org.apache.jena.ontology.OntModel". I'm ...
missa's user avatar
  • 1
1 vote
0 answers
47 views

How to use the Jena query builder for RDF-star?

How to convert this simple query to Jena java query builder? SELECT ?city WHERE { <<:athens :connected ?city >> :distance 500} I tried this in Clojure and it didn't work. No need to ...
Takis's user avatar
  • 8,314
0 votes
0 answers
35 views

Apache Jena interprets long as int

I define a dataproperty assertion in Jena (version 3.0.0) by using Long longValue=1L; Model m = virtualDataset.getNamedModel(iri); //loading from Virtuoso OntModel model = ModelFactory....
Discipulos's user avatar
0 votes
0 answers
49 views

How to connect Apache Jena Fuseki to python code in google colab

I have an ontology and I want tp perform some advanced SPARQL queries on it using Apache Jena Fuseki over a Google Collab environment, is it possible? I tried this code in my local device and it's ...
Reem's user avatar
  • 107
1 vote
0 answers
40 views

With multiple SERVICE clauses and large numbers of relationships in the path, how to execute SPARQL federated query statement?

Regarding the following SPARQL federated query statements: There are over 10000 ?s2 related to ?s1 There are over 10000 ?s3 related to the previously found ?s2 There are over 10000 ?s4 related to the ...
chenkun's user avatar
  • 55
0 votes
0 answers
29 views

What's the principle of SPARQL `SERVICE` clause query?

I know that SPARQL federated query engine (such as Jena) decomposes it into individual SPARQL based on Service, then sends it to the specified SPARQL endpoint for execution, and finally combines the ...
chenkun's user avatar
  • 55
0 votes
1 answer
51 views

Combining Apache Jena with OpenLink Virtuoso in Springboot

I'm using SpringBoot to develop an application combining Apache Jena with an OpenLink Virtuoso Service instance. Checking this guide OpenLink Documentation, I'm moving as follows: Set the pom (...
Discipulos's user avatar
1 vote
1 answer
132 views

Jena Fuseki on Mac M1 slow on loading multiple small turtle files

I am trying to load some data into Jena Fuseki 4.7.0 on my Mac M1 and noticed that loading multiple small files is very slow in comparison to linux machine. Then I did some tests by loading a file ...
user1566434's user avatar
1 vote
1 answer
44 views

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 ...
RedCrusaderJr's user avatar
0 votes
1 answer
64 views

how create named graphs in GraphDB?

how create named graphs in GraphDB? Is it necessary to change the format de rdf file from triples to n-quads through tools (like RDFLib or Apache Jena) or is there an easier way?
Gisane Michelon's user avatar
1 vote
0 answers
41 views

Sparql query doesn't return results using Fuseki

I am trying to run a sparql query via fuseki using java. The fuseki server is running. However when I run the code below, I can see that the console in eclipse is running but no results are returned (...
Ines's user avatar
  • 41
0 votes
0 answers
45 views

Error: Could not find or load main class riotcmd.riot in apache jena

I downloaded and extracted the jena-4.7.0-source-release.zip on a server using terminal. when I use the riot command it gives me an error. The details can be seen in the snapshot enter image ...
Muhammad Sohail's user avatar
0 votes
0 answers
6 views

Referencing ReasonerFactory defined in Fuseki Assembler in Java code

I am using Fuseki 4.7. My goal is to define a ReasonerFactory in assembler that includes two schemeas (<#aktivgraph> and <#time>). <http://example.org/reasoner> rdf:type ja:...
Enuff's user avatar
  • 101
0 votes
0 answers
37 views

How to update datatype property of individual?

I work with ontology through Android Studio (adrojena). I have a task - to update by condition the field "TECHNICAL_umovi_DSTU_TU" of the individual "inst". The condition itself is ...
Ксения Манжула's user avatar
1 vote
0 answers
46 views

How to load an existing model (ontology) from a file?

Let me start with what I have at the moment: I have a ready-made ontology in .rdf format, I work in Android Studio, I study Jena Fuseki in Studio. I have installed all the libraries I need. (https://i....
Ксения Манжула's user avatar
0 votes
0 answers
44 views

SWRL rules (or Jena rules) for reasoning on set

I am trying to write a SWRL rule that takes the facts : Robot:robot1 hasSkill RobotSkill:location. Robot:robot1 hasSkill RobotSkill:move. Robot:robot2 hasSkill RobotSkill:location. Robot:robot2 ...
Alex 's user avatar
  • 23
2 votes
2 answers
59 views

Loading large, compressed RDF file into Jena TDB2 without decompression

I am trying to load a large RDF file (some hundred million triples) into a Jena TDB2 database. Fuseki with Graph Store Protocol does not work because the file is too large for clients. The file is ...
Jakob's user avatar
  • 3,570
0 votes
0 answers
38 views

TimeoutException exception is always thrown when uploading a large data set

When uploading a very large data set to the Apache Jena Fuseki server, this Java exception is always thrown. Does anyone have any idea how I can fix this problem? I haven't tried anything because I ...
Muhannad Albakkar's user avatar
1 vote
1 answer
162 views

Running SPARQL query using owlready2 gave ValueError: Unknown block type MinusBlock

I have an ontology in an 'owl' file (quran_data_full.owl) and I saved it in a folder in my google drive (Quran Corpus). To perform some queries in this ontology, first I tried the query on Apache Jena ...
Reem's user avatar
  • 107
0 votes
1 answer
240 views

How to import apache.jena into Visual Studio Code?

I am getting started with Jena and semantic technologies (I am taking a class on the topic). The lecturer recommends using Eclipse as IDE, but I would like to use Visual Studio Code. How can I import ...
Sofie Jægtvik Benjaminsen's user avatar
2 votes
0 answers
81 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
0 votes
0 answers
54 views

Rdf into Visual graph

Hello Stackoverflow users , my Questiuon is How I can make Visual graph from any Rdf format(xml ,etc...) just like RDf Grapher Online , I'm using jena apache Library for work with RDF and my Example ...
FarshiD Naqizadeh's user avatar
1 vote
0 answers
39 views

Jena does not see the classes of an OWL/RDF model

I developed an open Source tool based on Jena (3.15.0) which creates a diagram from the content on an OWL/RDF model. It usually works correctly, but I got from a colleague a model he works on on and ...
Hervé Girod's user avatar
0 votes
1 answer
127 views

Bad character in IRI in Jena when reading OWL/RDF model

I have a org.apache.jena.riot.RiotException: Bad character in IRI (space) exception when reading an OWL/RDL model in Jena. I know that it's because I have a space in an IRI declaration in an XML ...
Hervé Girod's user avatar
0 votes
2 answers
55 views

How does SPARQL queries automatically read namespaces for abbreviations in virtuoso?

I've set up some namespaces in virtuoso, but when I used jena to do sparql queries in virtuoso, some namespaces were not abbreviated: @prefix sio: http://semanticscience.org/resource/SIO_ . @...
chenkun's user avatar
  • 55
0 votes
0 answers
37 views

Read owl file using jena

I'm still learning about JENA and I want to read an OWL file using JENA inside JAVA but I'm completely lost how to read it I don't have any code since I don't know how to actually do it I tried to use ...
N.J's user avatar
  • 1
0 votes
0 answers
77 views

Exception in server initialization. FusekiConfigException. Failed to create directory

I was trying to open Jena Fuseki through cmd and it throw the exception, but said the server is running in the server. But in the localhost port 3030 it showed 503 Service unavailable error. 503 error ...
Liziii's user avatar
  • 1
0 votes
0 answers
42 views

How to use SPARQL update in Jena SDB

I saved the following RDF/XML documents in a triple store(Jena SDB) <rdf:RDF xmlns:ex="http://www.example#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xml:base=&...
user20297975's user avatar
1 vote
0 answers
41 views

Can sparql count the same statement of triples?

I want to count triples with the same statement , is that possible? I have an turtle file of ontology , and i want to count the triples in apache jena fuseki server. for an example , i have some ...
Marshall's user avatar
0 votes
0 answers
36 views

Turtle file contains 0 triples

I want to upload turtle file into apache jena fuseki server. But when i upload , there is 0 triples uploaded I have an ontology. I want to make some query on apache jena fuseki server. I upload the ...
Marshal N K Bonai's user avatar
1 vote
0 answers
114 views

Can I generate SPARQL queries automatically from natural language statement in apache jena API?

I have built a domain specific ontology. And I need a framework over it where user asks a query in natural language and the system turns this query to the SPARQL query automatically. If somehow I ...
Izwa Naz's user avatar
0 votes
0 answers
31 views

Question about the relationship between Jena model.add and SPARQL

Does Jena's model.add method save to SDB using SPARQL? I mean how to save triple to SDB. I'm just asking out of curiosity. I know that SDB's project has been suspended.
user20297975's user avatar
0 votes
0 answers
63 views

How to parsing rdf xml in Java

I used java dom to parsing rdf xml in java, but I couldn't parsing rdf xml in the direction I wanted. Here is my code : String[] arr = new String[100]; DocumentBuilderFactory factory_parsing = ...
user20297975's user avatar
0 votes
0 answers
36 views

How jena SPARQL results in RDF XML format rather than triple

I wrote SPARQL in String queryString "SELECT DISTINCT ?dog ?p ?o " + "WHERE {" + "?dog <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <...
user20297975's user avatar
0 votes
0 answers
166 views

Java - Intelij Idea - Maven build fails on "cannot access *library class* " , but library is imported correctly (org.apache.jen)

Im using apache-jena-libs library version 4.3.2(tried various versions). I've imported it as maven pom dependecny <dependency> <groupId>org.apache.jena</groupId> <artifactId&...
Matt L's user avatar
  • 1
0 votes
0 answers
40 views

How to Serialize ARQ Algebra as ASK/CONSTRUCT SPARQL Query?

My intention is to Parse a SPARQL query to the ARQ Algebra. Get some work done. Parse the ARQ Algebra back to SPARQL query. Approach below seems to work as expected for SELECT queries, but fails for ...
RedCrusaderJr's user avatar
0 votes
2 answers
259 views

How to use Pellet reasoner in OWL API

I have an Ontology which have some SWRL rules (created using Protege). I am using OWL API to manipulate the ontology and using JENA API for SPARQL Queries. I need to reason this ontology using Pellet (...
Anzal Harris's user avatar
1 vote
1 answer
22 views

What is SDB's full name in Jena

I know Jena SDB has been end of life since Dec 2020. Nevertheless, I wonder what SDB stands for. Is is Statement Data Base or Semantic Data Base? Even referring to Jena's homepage, there was no answer ...
user20297975's user avatar

1
2 3 4 5
48