On 11/05/16 12:23, Ania david wrote:
I am sorry but I have already studied that file and my service, if you notice, 
is the same as that file.

You made changes.

And the one below is different to the one you initially posted.

again this is the configuration i am using

# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

## Fuseki Server configuration file.

@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" .



<#serviceInMemoryWithoutReasoner> rdf:type fuseki:Service;
     rdfs:label "testdataset";
     fuseki:name "testdataset";
     fuseki:serviceQuery "query";
     fuseki:serviceUpdate "update";
     fuseki:dataset <#datasetServiceInMemoryWithoutReasoner> ;

No upload service.
Hence you can't upload.

   fuseki:serviceUpload "upload" ;

See

http://jena.apache.org/documentation/fuseki2/fuseki-configuration.html

.

<#datasetServiceInMemoryWithoutReasoner> rdf:type ja:RDFDataset;
     ja:defaultGraph <#datasetmodelServiceInMemoryWithoutReasoner> ;
.

<#datasetmodelServiceInMemoryWithoutReasoner>
a ja:MemoryModel .

#---------------------



you said there is no service, but man i can see it when run fuseki web app, the 
data set is there .


if there is no solution, i understand, just let me know please so i can move on.

at the same level, i am still counting on some help

________________________________________
From: Andy Seaborne <[email protected]>
Sent: Wednesday, May 11, 2016 11:59:55 AM
To: [email protected]
Subject: Re: Loading rdf with memory service is not working

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 <[email protected]>
Sent: Wednesday, May 11, 2016 11:41:59 AM
To: [email protected]
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 <[email protected]>
Sent: Wednesday, May 11, 2016 11:12:01 AM
To: [email protected]
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




Reply via email to