Fuseki

Fuseki Server starting with an empty dataset

fuseki-server --update --mem /ds
start fuseki-server --update --mem /ds (launch in background)

Persistant fuseki DB in TDB database

fuseki-server --update --loc=test /ds
(ds - dataset, update - enable editing, loc - localization of database folder)

Launch from config file

fuseki-server --config assembler.ttl
# assembler.ttl
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

## Basic Fuseki configuation file.
## 
## See also config-tdb.ttl for TDB specific examples.
## See also config-examples.ttl for commented examples.

@prefix :        <#> .
@prefix fuseki:   .
@prefix rdf:      .

@prefix rdfs:     .
@prefix tdb:      .
@prefix ja:       .

[] rdf:type fuseki:Server ;
   # Timeout - server-wide default: milliseconds.
   # Format 1: "1000" -- 1 second timeout
   # Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout for the rest of query.
   # See java doc for ARQ.queryTimeout
   # ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000" ] ;

   # ja:loadClass "your.code.Class" ;

   fuseki:services (
     <#service1>
     <#service2>
   ) .

## ---------------------------------------------------------------
## Updatable in-memory dataset.

<#service1> rdf:type fuseki:Service ;
    # URI of the dataset -- http://host:port/ds
    fuseki:name                        "ds" ; 
    fuseki:serviceQuery                "sparql" ;
    fuseki:serviceQuery                "query" ;
    fuseki:serviceUpdate               "update" ;
    fuseki:serviceUpload               "upload" ;
    fuseki:serviceReadWriteGraphStore  "data" ;     
    fuseki:serviceReadGraphStore       "get" ;
    fuseki:dataset                     <#emptyDataset> ;
    .

## In-memory, initially empty.
<#emptyDataset> rdf:type ja:RDFDataset .

## ---------------------------------------------------------------
## Read-only access to a small books database.

<#service2> rdf:type fuseki:Service ;
    fuseki:name                     "books" ;
    fuseki:serviceQuery             "query" ;
    fuseki:serviceReadGraphStore    "get" ;
    fuseki:dataset                   <#books> ;
    .
    
<#books>    rdf:type ja:RDFDataset ;
    rdfs:label "Books" ;
    ja:defaultGraph 
      [ rdfs:label "books.ttl" ;
        a ja:MemoryModel ;
        ja:content [ja:externalContent  ] ;
      ] ;
    .

runs the server on port 3030 with an in-memory dataset. It can be accessed via the appropriate protocol at the following URLs:

Start JENA in Eclipse
It sets fuseki to be visible from the internet





© 2010 Marmil (Martin Milička) optimalizace PageRank.cz