
rg.cogchar.bundle.bind.joseki.1.1.3.source-code.joseki-config-friendu.ttl Maven / Gradle / Ivy
# This file is written in N3 / Turtle
@prefix rdfs: .
@prefix rdf: .
@prefix xsd: .
@prefix module: .
@prefix joseki: .
@prefix ja: .
## --------------------------------------------------------------
## This file is written in N3 / Turtle
## It is an RDF graph - order of RDF triples does not matter
## to the machine but it does help people who need to edit this file.
## Note: web.xml must be in-step with this file.
## for each service,
## Note: adding rdfs:label to blank nodes will cause Joseki
## to print that in log messages.
## See also file:joseki-config-example.ttl
## --------------------------------------------------------------
## About this configuration
<> rdfs:label "Joseki Configuration File" .
## --------------------------------------------------------------
## About this server
<#server> rdf:type joseki:Server ;
# Example of some initialization code.
joseki:initialization
[ module:implementation
[ module:className ;
rdfs:label "Example initializer" ; ]
] ;
.
## --------------------------------------------------------------
## Services
## Services are the points that request are sent to.
## serviceRef that will be used to match requests to services,
## not some resource URI for the description.
## Note that the service reference and the routing of incoming
## requests by URI as defined by web.xml have to align.
# Service 1
# General purpose SPARQL processor, no dataset, expects the
# request to specify the dataset (either by parameters in the
# protocol request or in the query itself).
<#frienduRepoServ>
rdf:type joseki:Service ;
rdfs:label "service point" ;
joseki:serviceRef "sparql/glue-ai" ; # web.xml must route this name to Joseki
joseki:dataset <#frienduRepoDset> ;
# Stu notes 2012-11-16:
# FixedDS is normally used for database-backed stores, including Joseki demo SDB store.
# When we use FixedDS, then "FROM" and "FROM NAMED" do not work in our queries.
# ARQ interps that as "load a special dataset", not "filter existing implied dataset".
# For the latter, we use the GRAPH pattern in our queries.
joseki:processor joseki:ProcessorSPARQL_FixedDS ;
#To do loading from query/params, instead use joseki:ProcessorSPARQL ;
.
<#frienduRepoUpdate>
rdf:type joseki:Service ;
rdfs:label "SPARQL/Update GLUE-AI Repo" ;
joseki:serviceRef "sparql-update/glue-ai" ;
joseki:dataset <#frienduRepoDset>;
joseki:processor joseki:ProcessorSPARQLUpdate
.
# "book" serv: file-backed SPARQL processor only handling a given dataset
#<#bookServ>
# rdf:type joseki:Service ;
# rdfs:label "SPARQL on the books model" ;
# joseki:serviceRef "sparql/books" ; # web.xml must route this name to Joseki
# # dataset part
# joseki:dataset <#bookDset> ;
# # Service part.
# # This processor will not allow either the protocol,
# # nor the query, to specify the dataset.
# joseki:processor joseki:ProcessorSPARQL_FixedDS ;
# .
<#anyServ>
rdf:type joseki:Service ;
rdfs:label "service point" ;
joseki:serviceRef "sparql/any" ; # web.xml must route this name to Joseki
# Any processor, with no specified dataset - specify using FROM or FROM NAMED, or servlet parameters
joseki:processor joseki:ProcessorSPARQL ;
.
## ---- SPARQL/Update
## A pair of services - one for SPARQL queries, one for SPARQL/Update
## Previous web.xml must also be updated to include a defintion for the
## servlet "SPARQL/Update service processor" and update requests must
## be routed to this servlet.
## <#serviceUpdate>
## rdf:type joseki:Service ;
## rdfs:label "SPARQL/Update" ;
## joseki:serviceRef "update/service" ;
## # dataset part
## joseki:dataset <#mem>;
## # Service part.
## # This processor will not allow either the protocol,
## # nor the query, to specify the dataset.
## joseki:processor joseki:ProcessorSPARQLUpdate
## .
##
## <#serviceRead>
## rdf:type joseki:Service ;
## rdfs:label "SPARQL" ;
## joseki:serviceRef "sparql/read" ;
## # dataset part
## joseki:dataset <#mem> ; ## Same dataset
## # Service part.
## # This processor will not allow either the protocol,
## # nor the query, to specify the dataset.
## joseki:processor joseki:ProcessorSPARQL_FixedDS ;
## .
## --------------------------------------------------------------
## Datasets
#<#bookDset> rdf:type ja:RDFDataset ;
# rdfs:label "Books" ;
# ja:defaultGraph
# [ rdfs:label "books.ttl" ;
# a ja:MemoryModel ;
# ja:content [ja:externalContent ] ;
# ] ;
# .
<#memDset> rdf:type ja:RDFDataset ;
rdfs:label "MEM" ;
ja:defaultGraph [ a ja:MemoryModel ] ;
.
<#frienduRepoDset> rdf:type ja:RDFDataset ;
rdfs:label "Friendu Repo Dataset"
.
## --------------------------------------------------------------
## Processors
joseki:ProcessorSPARQL
rdfs:label "General SPARQL processor" ;
rdf:type joseki:Processor ;
module:implementation joseki:ImplSPARQL ;
# Parameters - this processor processes FROM/FROM NAMED
joseki:allowExplicitDataset "true"^^xsd:boolean ;
joseki:allowWebLoading "true"^^xsd:boolean ;
## And has no locking policy (it loads data each time).
## The default is mutex (one request at a time)
joseki:lockingPolicy joseki:lockingPolicyNone ;
.
joseki:ProcessorSPARQL_FixedDS
rdfs:label "SPARQL processor for fixed datasets" ;
rdf:type joseki:Processor ;
module:implementation joseki:ImplSPARQL ;
# This processor does not accept queries with FROM/FROM NAMED
joseki:allowExplicitDataset "false"^^xsd:boolean ;
joseki:allowWebLoading "false"^^xsd:boolean ;
joseki:lockingPolicy joseki:lockingPolicyMRSW ;
.
joseki:ProcessorSPARQLUpdate
rdfs:label "SPARQL Update processor" ;
rdf:type joseki:Processor ;
module:implementation joseki:ImplSPARQLUpdate ;
joseki:lockingPolicy joseki:lockingPolicyMRSW ;
.
joseki:ImplSPARQL
rdf:type joseki:ServiceImpl ;
module:className
.
joseki:ImplSPARQLUpdate
rdf:type joseki:ServiceImpl ;
module:className
.
# Local Variables:
# tab-width: 4
# indent-tabs-mode: nil
# End:
© 2015 - 2025 Weber Informatics LLC | Privacy Policy