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
1
vote
1 answer

How do I build Jena Fuseki 2 from source?

I ran into a known issue with Jena Fuseki 2.0 where the default timeout is too small on UI created datasets. See http://permalink.gmane.org/gmane.comp.apache.jena.user/6824. This issue is resolved under JENA-918. I needed to get a build of Fuseki…
Interition
  • 381
  • 2
  • 15
1
vote
2 answers

Connecting to DBpedia endpoint behind a Proxy gives 407 error?

i am trying to connect to DBpedia to run a sparql query using apache jena. I am behind a proxy server, problem is i am getting a error with my code when connecting using apache jena but i can make a connection using direct url. This code is…
user2400582
  • 137
  • 1
  • 3
  • 9
1
vote
1 answer

Jena's getLocalName doesn't return numeric localname with Turtle

According to the changelog, the Turtle RDF serialization has supported numeric local names since August 2011. In the following Jena code, the result of getLocalName() on the URI http://www.foo.com/123456 is not 123456. Is this a bug in…
jaco0646
  • 15,303
  • 7
  • 59
  • 83
1
vote
0 answers

Apche JENA's integration with data virtualization tools

Anybody did any implementation of Apache JENA on top of RDF models(using R2RML mapping) created from Virtual Databases in Data Virtualization layer. I am specifically looking for integration with JBOSS-Teiid, Apache JENA, R2RML mapping. Any…
1
vote
1 answer

SPARQL distinct rowcount not returning correct number

I have the following SPARQL query , please pay attention to the rowcount in the selection predicate and the group by clause at the end of the query. I want the query to return the correct row count in every record , I noticed that the row count that…
user1965449
  • 2,849
  • 6
  • 34
  • 51
0
votes
0 answers

Apache Jena Split Graph based on Parent

I am learning Apache Jena. I am able to get Statements, Objects, Subject and graph. i want to split the graph based on parent example: B and C are child of A and further more D is Child of B. Again in Same graph A1 if parent of B1,C1 and D1. So I…
Akash Sethi
  • 2,284
  • 1
  • 20
  • 40
0
votes
1 answer

RDF format output from Fuseki 1.0

I am using the Apache Jena Fuseki version 1.0, which provides ability to use SPARQL query to get the data in text, JSON and XML format. Whether Fuseki 1.0 supports RDF output format? If possible, please tell how to get output in RDF format from…
0
votes
2 answers

Querying Agrovoc with Jena TDB Api

i have an issue querying Agrovoc Agrovoc Rabbits result in my java application. While am able to retrieve information about rabbits like concept. But when i try retrieving attribute information like concept label, broader, broader label I get their…
Green Onyeji
  • 259
  • 5
  • 18
0
votes
1 answer

Get distinct Predicates and Extract prefix from Predicates in RDF

I have a .ttl file. I want to extract all distinct predicates from it. I am using Apache-jena. For this, I have used this SPARQL command: "SELECT DISTINCT ?property WHERE {" + " ?s ?property ?o ." + "}"; And I get a result,…
The Madman
  • 41
  • 8
0
votes
0 answers

SPARQL query don't return any results in Jena

I'm trying to get movies in dbpedia that has subjects, directors and actors in common with a given movie. The search is made by a movie's name. Here is my final query: SELECT (SUM(?quant) as ?final) ?movie { { SELECT distinct ?quant ?movie …
0
votes
0 answers

How to Select resources with specific property in dbpedia with Sparql Query?

I have the query -- PREFIX rdf: PREFIX dbo: PREFIX rdfs: #select count(DISTINCT ?instance) # The number of suitable…
user6887048
0
votes
2 answers

Individuals from DBpedia

I have an exercise in Semantic Web. I must extract some individuals from the DBpedia. These individuals must be inserted into an ontology that I must create. My question is. Can I retrieve individuals from the DBedia? Let me clarify ! When I send…
0
votes
1 answer

Java how use sparql Delete query

I need some help removing an entry from my fuseki server For example, how can I remove this entry? "Test1" ; This is what I've tried, but it's not working... public void…
0
votes
2 answers

How can I have my SPARQL query results in Turtle format in Apache Jena with commandline interface?

I have a command ./bin/arq --data ./bin/dbpedia_2015-10.nt --query ./bin/166.rq which works perfect and I can see my result in my command line interface. I would like to use jena RIOT to have my result in the file.ttl . But as I am not familiar…
user6887048
0
votes
1 answer

Apache Jena Query Execution Time

So I have this piece of code in Jena, that measures the execution time of a select query Timer timer = new Timer(); timer.startTimer(); Query query = QueryFactory.create(queryString); QueryExecution qexec =…
N00bsie
  • 469
  • 3
  • 19