Look in the fuseki log. You'll see errors - there is no service defined.
http://jena.apache.org/documentation/fuseki2/fuseki-configuration.html
Andy
On 11/05/16 11:48, Ania david wrote:
Hello,
uploading the same file to the ds works, but for my testdataset doesn't, though
the same file.
could you help please ?
________________________________________
From: Andy Seaborne <a...@apache.org>
Sent: Wednesday, May 11, 2016 11:41:59 AM
To: users@jena.apache.org
Subject: Re: Loading rdf with memory service is not working
>> Result: failed with message "SyntaxError: JSON Parse error: Unrecognized
>> token '<'"
>
The Fuseki is trying to parse it as JSON of some kind.
Try a basic start-up
fuseki-server --mem /ds
Andy
http://stackoverflow.com/questions/37134946/fuseki-fails-to-upload-data-to-memory-but-sucess-to-tdb
wine.owl and wine.owl.rdf work fine for me.
On 11/05/16 11:24, Ania david wrote:
Hello,
Even after adding the (.) dot, still the same erro
here is the new file
@prefix rs: <http://example.org/rs#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
rs:i1 a rs:c1 .
rs:c1 rdfs:subClassOf rs:c2 .
could you help please ?
________________________________________
From: Dave Reynolds <dave.e.reyno...@gmail.com>
Sent: Wednesday, May 11, 2016 11:12:01 AM
To: users@jena.apache.org
Subject: Re: Loading rdf with memory service is not working
On 11/05/16 11:06, Ania david wrote:
Hello,
First of all, I don't have problem with TDB, so when I load the same
file with TDB service it works, but with in memory service, it doesn't
This is my Fuseki configuration
@prefix : <#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#serviceInMemoryWithoutReasoner>
)
.
# TDB
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
<#datasetServiceInMemoryWithoutReasoner> rdf:type ja:RDFDataset;
.
First of all, I want it to be a in memory service without reasoner.
It works with fuseki apache-jena-fuseki-2.3.1
but when I load my ttl file, which is this simple:
@prefix rs: <http://example.org/rs#>
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>
rs:i1 a rs:c1 .
rs:c1 rdfs:subClassOf rs:c2 .
I get this error:
Result: failed with message "SyntaxError: JSON Parse error: Unrecognized
token '<'"
As the message says there's a syntax error in your ttl file, you need a
"." at the end of each @prefix line (the syntax for prefix differs
between ttl and sparql which can be confusing).
You can use the command line tools like riot to check the syntax of your
files.
Dave