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

Jena Arq Stage Reordering?

So I know Jena Arq supports stage reordering as an optimization. (See https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageGeneratorGeneric.java) On line #70, there is a check for if the input is…
Mark
  • 4,446
  • 5
  • 26
  • 34
0
votes
1 answer

Checking Ontology Consistency in Run Time

I have a program that uses Jena to load an .owl Ontology designed in Protege. I am trying to do reasoning over it using Pellet in a way that if I add some statements in run time to model be able to check its consistency. For example I have 'Method',…
Kourosh
  • 91
  • 7
0
votes
1 answer

How to unload data from Jena Fuseki server

I am loading data to a named graph in fuseki server using the following command . How to remove the particular graph from jena fuseki server.Is there any simple commands similarly. '/home/user/jena-fuseki-1.1.1/./s-put…
lost Coder
  • 577
  • 2
  • 8
  • 34
0
votes
1 answer

Parsing SPARQL Result into jtable

I'm working on an Apache Jena project. I've got a Fuseki server running on my localhost. I want to create a Java Program for my Fuseki server, that shows all the data in the triplestore in a JTable. I just have no idea how to parse the result from…
user4524061
0
votes
2 answers

How do I build a SPARQL list input using jena querybuilder?

I have a bunch of code that uses the Apache Jena querybuilder API (SelectBuilder class). I am trying to add a term like this to my existing SPARQL query: (?a ?b ?c) :hasMagicProperty ?this . I have verified that this query works in…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
1 answer

Jena: How to retrieve name from DBPedia article

I have a dbpedia URL http://dbpedia.org/resource/Chicago_Cubs and want to use Apache Jena to parse this RDF and get the label of the page. It should be Chicago Cubs. I tried to do Model model = ModelFactory.createDefaultModel(); Resource teamModel…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
0
votes
0 answers

Why Jena is not returning declared RDFS properties?

I use Jena's OntClass.listDeclaredProperies() functions. Even every class is supposed to have all RDFS properties (e.g. rdfs:comment), listDeclaredProperies never returns any of them. How they are associated with a class and how to get them? Update…
user3024710
  • 515
  • 1
  • 6
  • 15
0
votes
2 answers

Jena - Find statements by property and object class

I'm looking for the way how to get all statements from my model by its property and by a class of an object. For example I have property :driverOf and individuals either of type Bus or Truck. Then I want to get all statements where the property is…
user3024710
  • 515
  • 1
  • 6
  • 15
0
votes
1 answer

Retrieving "when" a property was added to an ontology

I was wondering if it was possible to get the exact time stamp in a dateTime format for when a particular property, object or data, was added to the ontology. For example if I have three owl individuals A, B and C and through my code in either OWL…
Kunal Khaladkar
  • 493
  • 3
  • 16
0
votes
1 answer

Quads from a CONSTRUCT query in Jena

I'm trying to execute a SPARQL CONSTRUCT query against either a local TDB or a remote SPARQL endpoint. Now execConstruct on the QueryExecution returns a Model, which has no reference (that I know of) to any graph (and thus quads). Is there a way to…
JoelKuiper
  • 4,362
  • 2
  • 22
  • 33
0
votes
2 answers

Read strings into Jena Model

I have some Triples stored in a string like String st = .
Haroon Lone
  • 2,837
  • 5
  • 29
  • 65
0
votes
2 answers

Retrieving statement in Jena by its unique ID

I'm building a REST API which will serve information about statements stored in my Jena TDB. It would be great if each statement has its unique ID so I can use this ID in GET request to retrieve information about particular statement. Is there…
user3024710
  • 515
  • 1
  • 6
  • 15
0
votes
1 answer

Service now apis and jena

Can anyone suggest me how i can use ServiceNow Api's and i did a bit of research on it and found it requires authentication. Is it true? also I need jena for java 1.7 inorder to use sparql query.It is showing major.minor version 52.0 which is…
0
votes
0 answers

Jena for java 1.7

Is there any version compatible with java 1.7v in Jena I'm getting following error and i think it is because of incompatibility Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/jena/query/QueryFactory : Unsupported…
0
votes
0 answers

Implicit "SELECT" in SPARQL?

so I want to rewrite some SPARQL queries of some old code (which is not from me) with the SPARQL QueryBuilder from the Jena library. The query looks like this: SELECT ?s ?p ?o { { ?s ?p ?o. …
Christian S
  • 311
  • 1
  • 8