To Whom It May Concern:

I am starting a fuseki server with the provided configuration file (see
below).  What I would like to do is to retrieve the capabilities of the
service once it is created.  The reason being, there could be multiple
such SPARQL services (available over the net but capabilities are not
know to me) and I want to select some based on their capabilities (e.g.,
services with update capabilities).  Is there anyway to find that (i.e.,
service capabilities) out programmatically?  Any advice regarding this
would be much appreciated.

Regards
- Geeth

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 tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .

[] rdf:type fuseki:Server ;
    fuseki:services (
<#animal_service_pellet>
    ) .

# TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

<#animal_service_pellet> rdf:type fuseki:Service ;
     rdfs:label                          "TDB Service (RW)" ;
     fuseki:name                         "animals/pellet" ;
     fuseki:serviceQuery                 "query" ;
     fuseki:serviceQuery                 "sparql" ;
     fuseki:serviceUpdate                "update" ;
     fuseki:serviceUpload                "upload" ;
     fuseki:serviceReadWriteGraphStore   "data" ;
     fuseki:serviceReadGraphStore           "get" ;
     fuseki:dataset <#inferred_pellet> ;
     .

<#inferred_pellet>
   a ja:RDFDataset;
     ja:defaultGraph [
                       a ja:InfModel;
                       ja:reasoner [
                                     ja:reasonerClass
"org.mindswap.pellet.jena.PelletReasonerFactory";
                                   ];
                       ja:baseModel <#data_and_ontology_graph>
                     ];
   .

<#data_and_ontology_graph>
   a tdb:GraphTDB ;
   tdb:location "TDB_Loc" ;
   .


The University of Aberdeen is a charity registered in Scotland, No SC013683.

Reply via email to