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

command line tdbquery with text index

I trying to run a text search query with Jena via command line. tdbquery --desc textsearch.ttl --query search.rq The query return empty results with the messages: 17:23:46 WARN TextQueryPF :: Failed to find the text index : tried…
1
vote
1 answer

Reading RDF does not work

I am trying to road a foaf file: import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.ModelFactory; public class Testbed { public static void main(String[] args) { Model model = ModelFactory.createDefaultModel(); …
Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
1
vote
0 answers

Using sparql SERVICE between Stardog and Fuseki

I am new to Fuseki and Stardog, and I am trying to use a sparql SERVICE query to access some of the information in a Jena Fuseki (2.4.0) server with the Stardog (4.2) interface. The issue I am having is that every query I try ends up with an…
1
vote
1 answer

Perform an INSERT in Jena Fuseki with SPARQL gem (Ruby)

So I'm developing an API in Rails and using Jena Fuseki to store triples, and right now I'm trying to perform an INSERT in a named graph. The query is correct, since I ran it on Jena and worked perfectly. However, no matter what I do when using the…
1
vote
1 answer

Set the base URI when loading triples using Jena tdbloader

I would like to set the base url when I load data into Fuseki using tdbloader or tdbloader2. Currently the local path is used as base, which is not what I want. Example: # mytriple.ttl @prefix owl: . <#myitem> a…
Marijn
  • 1,640
  • 14
  • 24
1
vote
0 answers

How Json-ld with Hydra works in Apache jena in JAVA?

Note: I am replacing http:// with http:/ in my Question because I haven't enough reputation to post link more than two times in my question. I am explaining my problem step by step .To view exactly put the URL whatever I will tell in this console…
Badman
  • 407
  • 5
  • 17
1
vote
1 answer

com.google.common.util.concurrent.ExecutionError on redeployment

I'm getting the following exception when deploying my REST service in WildFly 10. When using eclipse for deploying on wildfly, everything seems to be fine. But when I'm using maven, the deployment is ok, but when using it on startup I get this…
jlanza
  • 1,208
  • 3
  • 23
  • 43
1
vote
1 answer

How to create domain ontology lexicon by getting all the classes name attribute relations and save it in the lists

I am new to the ontology and semantic analysis. currently, I have one public ontology source which was from BBC website. the source is in " .ttl " format. I was also to load the source in Jena by using eclipse. However, i was a little lost when i…
bob90937
  • 553
  • 1
  • 5
  • 18
1
vote
0 answers

How to use JWT for authentication in apache jena through HttpOp.java?

I want to use JWT for authentication purpose for information exchange. According to the JWT documentation documentation, I have to add a header with field Authorization : Bearer . But in apache jena in HttpOp.java which execHttpGet(...)…
Badman
  • 407
  • 5
  • 17
1
vote
1 answer

Error 404: Not Found Fuseki

This is my first time using Apache Jena Fuseki 2.4.0. I'm trying to run my friend's ontology website, he said that he's using Apache Jena Fuseki so I need to install it first but, when I already installed it and then I ran a server and typed his…
Irma Elita
  • 249
  • 3
  • 14
1
vote
0 answers

sparql query on alignment ontology

Hi I have two ontologies and one other ontology that is alignment of them. Now I want to run some sparql query on alignment ontology to get data from both ontologies. But I don't know what should be the PREFIX is sparql ? and how I can Access to…
user6717748
1
vote
2 answers

Writing DBPedia SPARQL results to RDF file in java

Hi friends I am a new one on semantic web and have some difficulties.I have queried to DBPedia and gotten property/value pairs for Paris. What I want to do is to write query results to rdf file. Below is my code: import…
user_01
  • 447
  • 3
  • 9
  • 16
1
vote
0 answers

Jackson binary serialization for custom class

I am trying to serialize my class using Jackson in Binary Format and struggling with it after trying a number of different alternatives. I was hoping someone can help. My custom class looks like: package com.common; import…
jainp
  • 267
  • 1
  • 2
  • 10
1
vote
1 answer

Apache Jena RDFWriter.setProperty has no effect

I'm using Jena (apache-jena-libs 3.0.1) in my java application to create RDF model and serialize to RDF/XML. I am using the same way that is documented in https://jena.apache.org/documentation/io/rdfxml_howto.html FileOutputStream out = new…
Zdeněk
  • 33
  • 6
1
vote
1 answer

405 HTTP method PUT is not supported by this URL

I started Fuseki server using this configuration: @prefix : <#> . @prefix fuseki: . @prefix rdf: . @prefix rdfs:
Klue
  • 1,317
  • 5
  • 22
  • 43