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
2
votes
1 answer

Delete blank node from ontology through SPARQL UPDATE

I am storing some data in my ontology model made in protege with help of a SPARQL UPDATE 'insert' operation. Below is the update query. PREFIX test: insert { []…
Usman Khan
  • 147
  • 15
2
votes
1 answer

SPARQL Path between two nodes

Given a graph: @prefix da: . @prefix on: . da:Shenaz on:husband da:Javed . da:Rita on:friend da:Noor ; on:sister da:Tom . da:Noor on:sister da:Shenaz . da:Javed on:child …
Noor
  • 19,638
  • 38
  • 136
  • 254
2
votes
1 answer

Loading RDF File to Hbase

i am trying to load the contents of an RDF File (Subject,Predicate,Object) to a table in HBase. So far i cannot understand how the contents of the file can be passed to the map method of the mapper class and to be stored in Hbase. Please provide…
2
votes
0 answers

What is implementation of Client API to interact with Hydra+JsonLd Web API?

I think they (API Platform) are developing server side implementation using JsonLd + Hydra .If they are doing at server side .How are they implementing Client side API to interact with this Web(Server Side) API?
Badman
  • 407
  • 5
  • 17
2
votes
1 answer

How to handle write errors in Apache Jena?

Imagine I have the following code for inserting a record into Apache Jena database (TBD): private fun createPersonLogic(ds: Dataset, email: String, nick: String) { ds.begin(ReadWrite.WRITE) val model = ds.defaultModel val uuid =…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
2
votes
2 answers

Creating JsonLd + Hydra based Generic Client API in java. Is there any projects exist for reference?

I am creating Client API in Java using :+ Apache Jena FrameWork+ Hydra(for Hypermedia driven) + my private vocab similar to Markus Lanther Event-API Vocab instead of schema.org(for Ontology/Vocabulary part) Section 1 : After looking this Markus…
Badman
  • 407
  • 5
  • 17
2
votes
1 answer

Get all data with specific property SPARQL

I have simple RDF data set with following values: user, url, time and ip. I can list all the data using: SELECT DISTINCT * WHERE { ?s ?p ?o } But now I need to list all the data with specific user. I would very much appreciate if the data from…
lsrom
  • 608
  • 8
  • 22
2
votes
1 answer

Add type triple to rdf document using D2RQ

If I use the default d2rq mapping file (ttl) all my colums are mapped to rdf properties. E.g. the colum ID becomes the Property "hasID" (after renaming).
user3579222
  • 1,103
  • 11
  • 28
2
votes
1 answer

How to create Alignment Object using alignment API

I have a local alignment.rdf file and using alignment API library here I want to create Alignment object and convert it to .owl file. My code is here: AlignmentParser aparser = new AlignmentParser(0); Alignment result = aparser.parse( new File(…
user6717748
2
votes
2 answers

Apache Jena TDB with MySQL

I am working on the semantic web and use TDB for RDF storage.Is it possible that we could use TDB with MySQL Workbench and execute semantic queries against TDB data in Workbench ? I went through Apache Jena TDB tutorial but could not find anything…
John Doe
  • 77
  • 1
  • 9
2
votes
2 answers

How to get http response header in apache jena during calling Method FileManager.get().loadModel(url)

I am loading model in apache jena using function FileManager.get().loadModel(url).And I also know that there may be some URLs in HTTP Response Link Header .I want to load model also from the links(URLs) in link header.How to do that ? Is there any…
Badman
  • 407
  • 5
  • 17
2
votes
1 answer

how to change the Node of a TriplePath in Jena?

I want to change a node of a Jena TriplePath (org.apache.jena.sparql.core.TriplePath), but I haven't found any manner. Imagine I have this code: TriplePath tp = null; .... //tp has been defined and not null Node domain = tp.getSubject(); Node…
tremendows
  • 4,262
  • 3
  • 34
  • 51
2
votes
1 answer

SPARQL query against DBPedia using Java

I would like to query on DBPedia using Java. Below is my code and it does not return corrrect result.I want to get Abstract part from [http://dbpedia.org/page/Ibuprofen page and label name. but it returns only http://dbpedia.org/resource/Ibuprofen …
developer
  • 25
  • 1
  • 11
2
votes
1 answer

Reading an owl File using Jena API

Hi guys so I'm trying to build a project that aligns to Ontologies; and I was searching for ontology example and I found this ontology on a PDF file and wanted to use it by copying-pasting it in a .owl file, but it won't work String…
dark_knight94
  • 117
  • 11
2
votes
1 answer

How to speed up to read

I'm starting to use Apache Jena Fuseki for running SPARQL in local. I'm looking for a way to speed up to load an RDF file. Currently I'm using the following command as noted in the instruction. s-put http://localhost:3030/ds/data default…
Benben
  • 1,355
  • 5
  • 18
  • 31
1
2
3
12 13