This is my config.ttl
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
@prefix : <#> .
@prefix fuseki: .
@prefix rdf: .
@prefix…
I am trying to inset data in a jena fuseki graph using this simple query:
PREFIX test:
INSERT {?subject test:hasName "Bob"}
WHERE{
?subject test:hasEmail "email@test.com" .
}
However, i get the error:
Error 400: SPARQL Query:…
I'm trying to reproduce the class hierarchy displayed to me in Protege for the OWL ontology (owl.ttl) which you can find at the standard URI location http://www.w3.org/2002/07/owl# for download.
I'm trying to do this using Jena's API, by loading…
I'm writing a DCAT query component and ideally I'd be able to load a Jena model with as many distributions are available in the catalog (assuming they're not different representations of the same data, which according to my experience they usually…
I'm trying to read RDF\XML file into Apache spark (scala 2.11, apache spark 1.4.1) using Apache Jena. I wrote this scala snippet:
val factory = new RdfXmlReaderFactory()
HadoopRdfIORegistry.addReaderFactory(factory)
val conf = new…
What is an easy way to create multiple skolems without copying the rule multiple times?
[ AddingMother:
makeSkolem(?mother, "a mother")
->
(?mother rdf:title "mother") (?mother rdf:type _:Mother)
]
[ AddingChild:
(?mother rdf:type…
I want to read all the Object Properties present in the OWL file. I have created that OWL file using Protege tool. I have loaded the model also but I am not able to fetch the object properties.
For Example: if I have a class in Ontology named as…
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/jena/fuseki/cmd/FusekiCmd : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at…
I'm trying to read an N-Quads file with Jena, but all I get is an empty model. The file I'm trying to read is taken from the example in N-Quads documentation:
…
I am using fuseki embeded from a Java application :
Dataset ds = DatasetFactory.createTxnMem() ;
FusekiEmbeddedServer server = FusekiEmbeddedServer.create()
.setPort(3333)
.add("/ds", ds, true)
.build() ;
server.start()…
I just started working with Fuseki and Jena. I have an ontology and I want to allow HTTP clients to send SPARQL requests and get the result. Here is the code I have in order to achieve that:
// testing Fuseki
Dataset dataset =…
I want to use jena api to manipulate the ontology that I have. I want to get subclasses of a class, instances of a class and properties of instance.
Data would look like below:
gv:AInstance
rdf:type ex:AClass;
core:containsProperty…
I am trying to load an external vocabulary (http://purl.org/eis/vocab/daq#) - this vocabulary has valid syntax and can be dereferenced and has both an RDF/XML and TURTLE serialisation - using the RDFDataMgr, however, I am getting a…