@prefix rdfs: . @prefix rdf: . @prefix xsd: . @prefix module: . @prefix joseki: . @prefix ja: . @prefix sdb: . @prefix tdb: . <> rdfs:label "Joseki Configuration File - TDB example" . # Stripped down to support one service that exposes an # TDB store as a SPARQL endpoint for query. [] rdf:type joseki:Server . ## -------------------------------------------------------------- ## Services <#service1> rdf:type joseki:Service ; rdfs:label "SPARQL-TDB" ; joseki:serviceRef "sparql" ; # web.xml just route this name to Joseki joseki:dataset <#dataset> ; joseki:processor joseki:ProcessorSPARQL_FixedDS ; . #<#service2> # rdf:type joseki:Service ; # rdfs:label "SPARQL-TDB" ; # joseki:serviceRef "sparql/graph" ; # web.xml just route this name to Joseki # joseki:dataset <#dataset-1graph> ; # joseki:processor joseki:ProcessorSPARQL_FixedDS ; # . ## SPARQL/Update. ## Creation of named graph from web requests is not supported. ## <#serviceUpdate> ## rdf:type joseki:Service ; ## rdfs:label "SPARQL/Update" ; ## joseki:serviceRef "update/service" ; ## # dataset part ## joseki:dataset <#dataset>; # Same as service1 ## joseki:processor joseki:ProcessorSPARQLUpdate ## . ## -------------------------------------------------------------- ## Datasets ## Initialize TDB. [] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . # ---- A whole dadaset managed by TDB <#dataset> rdf:type tdb:DatasetTDB ; tdb:location "/database/tdb" ; . # <#dataset> rdf:type ja:RDFDataset ; # ja:defaultGraph <#graph> ; # . # # <#graph> rdf:type tdb:GraphTDB ; # tdb:location "/database/tdb " ; # . ## ---- A single graph inside a general dataset. #<#dataset-1graph> rdf:type ja:RDFDataset ; # # If ja:namedGraph is used here, there is no # # correspondence with the name in the TDB store. # ja:defaultGraph <#graph> ; # . #<#graph> rdf:type tdb:GraphTDB ; # tdb:location "DB" ; # . ## -------------------------------------------------------------- ## Processors joseki:ProcessorSPARQL_FixedDS rdfs:label "SPARQL processor for fixed datasets" ; rdf:type joseki:Processor ; module:implementation [ rdf:type joseki:ServiceImpl ; module:className ] ; # This processor does not accept queries with FROM/FROM NAMED joseki:allowExplicitDataset "false"^^xsd:boolean ; joseki:allowWebLoading "false"^^xsd:boolean ; # The database is safe for MRSW (multiple-reader, single-writer). joseki:lockingPolicy joseki:lockingPolicyMRSW ; . joseki:ProcessorSPARQLUpdate rdfs:label "SPARQL Udpate processor" ; rdf:type joseki:Processor ; module:implementation [ rdf:type joseki:ServiceImpl ; module:className ] ; joseki:lockingPolicy joseki:lockingPolicyMRSW ; . # Local Variables: # tab-width: 4 # indent-tabs-mode: nil # End: