Questions tagged [apache-jena]

Apache Jena is a free and open source Java framework for building Semantic Web and Linked Data applications.

This is a synonym for the Jena tag.

Apache Jena Homepage

Links

185 questions
0
votes
1 answer

How to make the matching using FILTER and regex in sparql?

I'd like to match an input given by user (String) with a value (String) of a specific node existing in rdf file. I applied the following exact mode for matching (input=NodeValue): ... FILTER regex (?NodeValue,"userinput$","i"). for this type of…
Anis Elloumi
  • 23
  • 1
  • 4
0
votes
1 answer

error in generating owl alignment from rdf alignment using Align API

I have done ontology matching on two ontologies and it's result is alignment.rdf. Now I want to generate owl file from alignment rdf using Align API library. According to Align API documentation here is my code : PrintWriter writer1 = null ; …
user6717748
0
votes
0 answers

How to skip illegal escape sequence value for Jena

During reading a large turtle file with the following code using Jena, I got the error org.apache.jena.riot.RiotException: [line: NUM, col: NUM] illegal escape sequence value and the code stopped. Model model =…
Benben
  • 1,355
  • 5
  • 18
  • 31
0
votes
2 answers

Is Apache Jena in java do dereferencing URLs automatically?If yes then what I can do to restrict it

FirstTestingClass.java package com.mycompany.sparqlwithjena1; import org.apache.jena.query.Query; import org.apache.jena.query.QueryFactory; import org.apache.jena.query.ResultSet; import org.apache.jena.query.ResultSetFormatter; import…
Badman
  • 407
  • 5
  • 17
0
votes
0 answers

How to find annotation properties of an Owl ontology using Java Jena?

I am developing a project on ontology using Java Jena and that needs annotation properties like 'sameAs', level, comment etc.
0
votes
1 answer

How to retrieve all resources of a given class connected to a given value

Is it possible, with a SPARQL query, to retrieve all resources of a given class C, in the model connected to a given literal? For example: S1, p1, o1 S1, type, C O1, p2, L1 S2, p3, o2 S2, type, C O2, p4, o3 O3, p5, L1 For literal L1, I want to…
0
votes
0 answers

error on using Model model = ModelFactory.createDefaultModel();

I am writing a RESTful Service in java program using Apache Jena OWL library. I already have my ontology created called. "university.owl" and trying to load it so i can make sqarql queries against it When I create a model with OWLOntologyManager…
Ekaku509
  • 17
  • 6
0
votes
0 answers

Is it possible to perform i/o from within JENA rules?

I'm interested in using Jena to build a fault diagnostic, ontology-based expert system. Is it possible to perform i/o from within forward- or backward-chaining rules? For example to prompt the user for further facts? Or to access a database?
0
votes
0 answers

Model is empty for delete SPARQL query

I'm using the following SPARQL query DELETE DATA { } ; After I executing the following lines, Model model = ModelFactory.createDefaultModel(); UpdateAction.parseExecute(sparqlUpdateQuery, model); my model is still empty. I am trying to execute…
0
votes
1 answer

Change localName of an individual using Jena

I need to change the name of an individual. I have found that using the getLocalName you manage to print the name, but is it possible to change the name of an existing individual and propagate it over the whole graph? I have thought on using sameAs,…
jlanza
  • 1,208
  • 3
  • 23
  • 43
0
votes
1 answer

getting the WHERE from an apache JENA ARQ Query

Is it possible to get the WHERE Clause from a Query org.apache.jena.query.Query ? Haven't found no info enywhere, no documentation anywhere. Imagine I create a query from a String String queryString = " SELECT ?name ?mbox WHERE { ?x…
tremendows
  • 4,262
  • 3
  • 34
  • 51
0
votes
1 answer

Order of Predicates not retained with Apache Jena RDF

When I am trying to more than 9 property objects to Resounce using Apache Jena API, ordering is not retained in the way I am adding. Can anyone explain the reason and how can I fix it?
hyma
  • 21
  • 1
0
votes
1 answer

Loading error of tdbloader2: Illegal character in IRI

I'm trying to replicate a DBpedia for an experiment. I download the latest dataset of DBpedia from: http://downloads.dbpedia.org/2015-10/core/ and store them a directory dbp_201510/. I tried to load the dataset using tdbloader2. tdbloader2 --loc…
Benben
  • 1,355
  • 5
  • 18
  • 31
0
votes
0 answers

SPARQL Query in java with Jena

I'm now to Jena and SPARQL and i'm struggling with the queries I'm trying to get the type from the following ontology. uspv:R3 a pv:Report. uspv:R3 pv:atTime uspv:R3t. uspv:R3t a owltime:Interval; owltime:hasDateTimeDescription…
Michael
  • 1,030
  • 14
  • 29
0
votes
1 answer

replicating contents from a SPARQL endpoint locally with Jena

I'd like to replicate the contents of a SPARQL endpoint locally and then query those data locally Because it's somewhat large dataset I don't think a memory based model would fit But I can't find any example of a model with some initial content AND…
user1632812
  • 431
  • 3
  • 16