Questions tagged [jena]
Apache Jena is an open-source Java library for processing RDF data in semantic web and linked-data applications. This includes command-line tools for RDF-based applications.
2,517
questions
0
votes
0
answers
12
views
Wordpress and Apache Jena/Fuseki
Good morning,
I have a knowledge graph stored as a ttl in Apache Jena. I am using Apache Fuseki to query the data. Is it possible to use Wordpress as UI to display and input more data to the graph? I ...
0
votes
0
answers
26
views
What are the semantics of RDF reifications?
I am using Apache Jena, and I need to use RDF reification to express hypothetical statements about facts. For example, consider this: Alex "assumes" Eva was born between 1980 and 1990.
...
0
votes
0
answers
26
views
apache jena imports doesn't work with java
have a problem with the apache jena imports to create a java project, when I tried to import the libraries, imports said "can't find symbol" o "can't resolve", I don't know what to ...
0
votes
1
answer
22
views
Handling NaN (xsd:double) in Turtle
While the special value of NaN is in the value space of xsd:double, and it can be abbreviated in Turtle, Jena 4.4.0 ( riot --sink ) says Unrecognized keyword: NaN.
Is this a Jena's specification?
...
0
votes
0
answers
22
views
What is the best way to save jena Result set in database?
I am creating a Spring web application that queries SPARQL endpoints. As a requirement, I'm supposed to save the query and the result for later viewing and editing. So far I have created some entities ...
0
votes
0
answers
19
views
Unable to infer using owl reflexive property with apache jena
I'm trying to use owl:ReflexiveProperty in an ontology, but I'm not finding the expected inferred statements in the model. I'm currently testing with the following minimal example:
Model model = ...
0
votes
0
answers
33
views
Query Relevance Rewriting in Ontology
I was wondering is there a way/work that focuses only on those axioms that are needed to answer the query and based on this rewrite the query, instead of finding the whole TBox closure? Mostly the ...
0
votes
1
answer
53
views
Apache jena: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
When I run the example from the docs(https://jena.apache.org/documentation/ontology/): I get following error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: ...
0
votes
0
answers
37
views
Jena Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project jena-iri: Fatal error compiling
I try to use Apache Jena with eclipse on my machine.
I'm following the official documentation:
https://jena.apache.org/tutorials/using_jena_with_eclipse.html
Which links to https://jena.apache.org/...
0
votes
1
answer
37
views
LiteralImpl cannot be cast to class Resource (LiteralImpl and Resource are in unnamed module of loader 'app' (Jena)
I'm creating a web app (spring + react) that will query an endpoint (selected by the user) with a certain query. For the purposes of this app I'm using jena.
This is the method where I use jena:
@...
0
votes
0
answers
18
views
Change jena-fuseki logging level
There's quite little information on jena-fuseki logging on apache documentation, found just this: https://jena.apache.org/documentation/fuseki2/fuseki-logging.html
My jena-fuseki in running in rkt-...
0
votes
1
answer
48
views
java.lang.UnsupportedClassVersionError trying to run Jena ARQ to follow along with O'Reilly SPARQL book
I'm trying to get Jena ARQ as suggested in O'Reilly SPARQL 1.1 book so I can follow along with the query examples in the book. I've downloaded apache-jena-.4.0.zip from jena.apache.org/download/index....
0
votes
2
answers
43
views
Jena JavaScript custom functions scriptEngine null error
Summary: I am trying to use the documentation on JavaScript SPARQL Functions to get a minimal working example of calling a custom javascript function, but it results in a scriptEngine null error.
...
0
votes
0
answers
27
views
Write jena TDB Query Results into Parquet
I am not sure if it's possible to write the query results of Apache-Jena tdbquery directly into other file formats such as the columnar ones (e.g., parquet, or ORC).
Herein, how I use it with CSV, I ...
0
votes
0
answers
137
views
Java Error : Only a type can be imported resolves to a package
I get the error: "Only a type can be imported.
Someone has explained the cause here but I am not sure what I supposed to do to fix this. FYI: I am using Eclipse. I have added the code that does ...
0
votes
0
answers
33
views
Jena Reasoner does not follow inferred statements when executing SPARQL queries
I have been learning about Semantic Web recently and testing stuff with Jena. I have a model with 2 Ontologies and 2 sets of Instance data. One Ontology is actually FOAF (Friend-of-a-Friend), and the ...
0
votes
0
answers
21
views
APACHE JENA Inference
I am using pizza ontology and I created 2 individuals of the classes NamedPizza and UnclosedPizza which are subclasses of the class Pizza. However, when I run a query in fuseki to obtain all the ...
0
votes
1
answer
55
views
Sparql query to read from all named graphs without knowing the names
I am looking to run a SPARQL query over any dataset. We dont know the names of the named graphs in the datasets.
These are lots of documentation and examples of selection from named graphs when you ...
0
votes
1
answer
25
views
Block implicit location mapping loading in Jena
What would be a good and simple way to block implicit location mapping loading in Jena?
In other words, if there are files with the following patterns found:
"file:location-mapping.rdf;file:...
2
votes
0
answers
136
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 ...
0
votes
0
answers
67
views
Jena Fuseki GeoSPARQL: cannot delete data
Trying to delete data from a Jena Fuseki server running the GeoSPARQL extension.
The queries don't seem to be effective.
The output from the server when trying either DELETE or DELETE DATA is:
23:29:...
0
votes
0
answers
29
views
GeoSPARQL: inferring distance
Is it possible to create using RDF a relationship between points (Latitude/Longitude) such that when loaded into a store (such as Jena Fuseki with the GeoSPARQL extension) that the distance between ...
0
votes
1
answer
33
views
Ontology simple Sparql query returning null values with Jenna
Basically I created my Ontology on Protégé, and I already verified my queries that are working and returning real values but once I tru to visualize them on my jsp file, my queries are returning null ...
0
votes
1
answer
61
views
Storing RDF to Triple Store as input: Conversion from CSV to RDF
I am using Triple Store called Apache Jena Fuseki for storing the RDF as input But the thing is that i have data in CSV format. I researched a lot but didn't find direct way to convert CSV to RDF but ...
2
votes
0
answers
57
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 ...
0
votes
0
answers
26
views
SPARQL over HTTP not executing
I am using the SOH commands given by apache jena fuseki platform to s-get and s-post and s-query but I am always getting the output as s-get : command not found. What is wrong in this case and how can ...
0
votes
0
answers
23
views
How to customize Jena ARQ query engine to add additional triple pattern
Given the following triples describe Forklift1 location at the different times:
:forklift1
:location :station1, :dockdoor1;
:9305fc5f-d43d :station1;
:a4e9-2bcd5b97 :dockdoor1;
.
:9305fc5f-...
0
votes
0
answers
33
views
How to write Apache Jena Inference rule for given rdf data?
I am trying to build a Apache Jena reasoner node over the below rdf data instance.
I want to write a rule such that the inference api can tell if certain sensor values were out of range. e.g. print ...
0
votes
0
answers
15
views
ModelCom extension breaks initialization
I have a class ModelComExt that extends ModelCom:
public class ModelComExt extends ModelCom {
.
.
public ModelComExt() {
super(ValidationReport.reportConformsTrue().getGraph());
...
0
votes
0
answers
46
views
I get bad request error while uploading in fuseki
I want to upload a file using Fuseki localhost control panel, but every time I get a "Bad Request" error. I select the dataset and click the upload files button. Then I select the owl file I ...
0
votes
0
answers
44
views
APACHE JENA FUSEKI | Error when working with large files in class RdfConnectionFuseki
I am working with Apache Jena Fuseki and I am currently loading several files into Fuseki and creating UUIDs for the individuals declared in the files.
Everything works fine, except when I try to load ...
0
votes
0
answers
40
views
Load different data into different datasets in Apache Jena Fuseki
I am creating two different datasets in Jena, the default dataset and an additional dataset. To load data to the first dataset I am doing the following:
RDFConnectionRemoteBuilder builder = ...
0
votes
1
answer
99
views
Setting content type in Jena RDFConnection Header
I need to modify the header (specifically the Content-Type) of a request (eg: update) of an RDFConnection object in a Jena transaction. More precisely, I need to add the following Header Content_Type
...
0
votes
0
answers
28
views
Fuseki Named Graph persistence with inference
I am trying to persist multiple named graphs with inference in Fuseki.
I am referring to this excellent article, but facing some issues in Scenario 2: named graphs and no online updates.
My assembler ...
0
votes
1
answer
46
views
Illegal escape sequence value when executing a SPARQL against Jena TDB query via Jena's Java API
I am running an SPARQL* query against Jena's TDB where the result set (DBPedia logs) contains escpace characters. To run the query I use org.apache.jena.query.QueryExecution like the following:
query =...
0
votes
1
answer
19
views
How to migrate code using Apache Jena HttpAuthenticator to Jena 4.3.2?
I want to migrate code using Apache Jena 2.13.0 to 4.3.2.
Using Maven, I changed the dependency to:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>...
0
votes
1
answer
35
views
optimizing a SPARQL query when using a custom function in Jena
I have the following SPARQL query on a Owl Ontology, using Jena:
SELECT ?label ?distance
WHERE {
?wpt rdf:type inav:Waypoint .
?wpt inav:Label ?label .
?ac rdf:type inav:Aircraft .
?ac inav:...
0
votes
0
answers
38
views
Sparql Insert into Graph and keep defined schema of instance
currently I try to create an instance of an earlier defined schema in my graphdatabase. My graphdatabase is an instance of apache fuseki. The goal is to achieve something equal to an SQL CREATE TABLE ...
0
votes
0
answers
25
views
Apache Jena Fuseki2 - Creating tasks on a dataset
I am trying to find a way to create a task on a dataset using Fuseki2 (Apache Jena HTTP API).
The documentation here shows a way to retrieve all active tasks.
Request
curl -X GET localhost:3030/$/...
0
votes
0
answers
38
views
Jena ARQ Parser Exception: Variable used when already in-scope: ?.0
I am trying to parse this query using Jena 4.3.0 ARQ Parser:
sparql_Opt_query="""
prefix ns1:
PREFIX sql:
PREFIX bif:
select ?name ...
1
vote
2
answers
38
views
How to get in Jena the exact range of an ObjectProperty with restrictions?
I have an owl/rdf schema with object properties with range restrictions, and I'm unable to get with the Jena API the effective range class.
I would like to get the classes which are defined in the ...
0
votes
0
answers
90
views
problems with libraries in IntelliJ
The libraries are located in the project in this way
The makefile looks like this
When I try to call make compile I get the following errors from both libraries
At the same time, when navigating ...
0
votes
1
answer
60
views
Accessing Object Property for Individual using Apache Jena
I have created an OWL ontology using Protégé, describing a patient database system. I am now attempting to develop a Java code using Apache Jena to read the OWL file I created, then perform a number ...
0
votes
2
answers
74
views
Is the Triple store commonly used for CRUD operations? [closed]
I'm learning the semantic-web technologies and the power of linked data. Use of RDF, RDFS, OWL inference could come really handy. Sparql query to read linked data from the triple store is cool and ...
0
votes
1
answer
41
views
Apache Jena resultset not preserving order from the SPARQL query
I am executing a SPARQL query in my java application and I expect the resultset to preserve the order provided in the SPARQL query.
The query returns ordered results when run in GraphDb editor, but ...
0
votes
0
answers
26
views
How to add an ontology class to a model with Jena in eclipse based on user input
I am new to Java and have just received an assignment that requires working on an ontology with Jena Apache in Eclipse. I have to modify the ontology based on user inputs. I have been reading the ...
2
votes
1
answer
80
views
Number of triples in Jena Fuseki
I have to upload 3 billion triples but the maximum would seem to be 1.7 billion https://www.w3.org/wiki/LargeTripleStores#Jena_TDB_.281.7B.29
It's correct? What is the maximum number of triples I can ...
1
vote
0
answers
140
views
docker mkdir won't create a directory
I am trying to run a bash script which should load data into jena. This script comes from a github repository and was allegedly working on the owner's machine but on mine it won't run, even though I ...
0
votes
0
answers
110
views
Apache Jena on IntelliJ - Problem with configuration
I have a problem with configuration of Apache jena on IntelliJ. This is my main class where I have tried to configure apache Jena. Basically it gives BasicConfigurator in red, so it clearly not exist ...
0
votes
1
answer
109
views
Title Case Conversion in SPARQL Query with REGEX
I am one inch away from the solution to my problem. I am attempting title case conversion of strings retrieved via SPARQL. I am using the REPLACE function in combination with LCASE and REGEX:
BIND (...