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…
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 ;
…
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 =…
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…
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…
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?
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…
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,…
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…
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?
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…
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…
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…