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

Sparql request for relationships

Hey I made the protege tutorial for pizzas. I got an owl file. I saved the file as RDF/XML format. Now I try to get some information about the data in the file. Things like: "Select * where { ?s rdfs:subClassOf owl:Thing } work. Now I want to get…
SamuelTJackson
  • 1,357
  • 3
  • 19
  • 40
0
votes
0 answers

Is there is any efficient way to create a new Jena Model from a Jena Model with a given resource URL/blank node?

Lets assume Model contains this data in triplet form. @prefix dc: . @prefix ns1: . @prefix rdf: . @prefix rdfs:…
Badman
  • 407
  • 5
  • 17
0
votes
1 answer

Prevent timeout while querying Dbpedia endpoint using Apache Jena

I'm using Apache Jena to fetch a huge amount of data from Dbpedia and write it into a CSV file. However, I'm only able to get about 10,000 triples and not the entire data. I need it to fetch all triples in the query. I can't identify whether it is…
0
votes
1 answer

Apache Jena - issue on generating RDF

I try to make a RDF document with Apache Jena in which I want some information about museums. I make the resources and the model, but when I print out the final output it will give me the properties for all museums into first museum resource. What…
Doro
  • 335
  • 2
  • 6
  • 24
0
votes
0 answers

java sparql with update from endpoint I get java.lang.ClassNotFoundException: org.apache.http.protocol.HttpContext

I have developed a web application where I use a POST webservice from my HTML page with AngularJS to post a variable in my java class. I use this variable to update my graph in a Fuseki RDF store that I have. For some reason I get a…
MariaZ
  • 27
  • 3
0
votes
1 answer

Multiple individuals retrieved from sparql query

I have an owl file classes and individuals are in the same file. Complaint and User (classes). I create users' complaints as individuals. An complaint class has dataProperties (id, num of read, title, tags, content etc. ) I wrote a sparql query…
babeyh
  • 659
  • 2
  • 7
  • 19
0
votes
1 answer

Jena won't connect to custom online file

I tried to connect Jena to my custom file which I stored on a public directory on Dropbox with the following link https://www.dropbox.com/s/d3gfidqqfwvo4e9/foaf.ttl?dl=1. I've intentionally changed the link to dl=1 instead of dl=0 so the link would…
Ivan Janev
  • 33
  • 6
0
votes
2 answers

SPARUL query to drop most graphs, using Jena API

I am trying to clear most of the graphs contained in my local Virtuoso triple store, using Apache Jena, as part of my clean up process before and after my unit tests. I think that something like this should be done. First, I retrieve the graph URIs…
Pantelis Natsiavas
  • 5,293
  • 5
  • 21
  • 36
0
votes
2 answers

How to access "permissions" package in Apache Jena?

I consider migrating a project to Apache Jena but can't get my mind around Jena's architecture. In this example... https://github.com/apache/jena/tree/master/jena-permissions/src/example/java/org/apache/jena/permissions/example ... we make use of…
bloxx
  • 123
  • 7
0
votes
3 answers

How to pass a variable to a SERVICE expression in SPARQL?

I have built an ontology for live concerts, Concert_Ontology.ttl. This contains definitions for concerts, artists, repertoires, and songs. I want to match the artists in my ontology and the artists in the dbpedia Person ontology based on the…
Erlend Vollset
  • 103
  • 1
  • 9
0
votes
0 answers

Getting a ClassCastException on Executing a SPARQL Query in Apache Jena.?

I'm new to using Apache Jena! Following is my code. Exception at exec.execSelect(),can anyone tell why? public static void main(String [] args){ ParameterizedSparqlString qs = new ParameterizedSparqlString("" + "prefix rdfs: …
0
votes
1 answer

Relates OWL individual with OWL axiom

I have to related the owl:axiom with the owl:individual. My RDF is as follows:
skid
  • 31
  • 5
0
votes
2 answers

How to set data type for OWL restriction using Apache Jena?

I am using Apache Jena. I have created the data property, its range as xsd:string and restriction that is added as a superclass to specific (already created) class: DatatypeProperty dataProperty = model.createDatatypeProperty(baseURI +…
user1794211
  • 65
  • 1
  • 6
0
votes
1 answer

What is exact implementation of Model data (or Graph) in Apache Jena?

I understand Model like this : It consists of triplets ( Subject Predicate/Property Object) A B C C D E E F G G H I X Y Z And We can represent above set of Triplets with Nodes and Edges in Graph. I want to get Subject 'A' value which can have…
Badman
  • 407
  • 5
  • 17
0
votes
1 answer

SPARQL search query

I have some RDF data structured like this: [ pref:ip_address "127.0.0.1" ; pref:time "1459630844.482" ; pref:url "https://google.com" ; pref:user "johndoe" ] . I need query that will return all results matching given…