| ## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 |
| |
| # Example of a data service with only SPARQL query on an |
| # in-memory inference model. Data is taken from a file |
| # when the data service is started. |
| |
| 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#> |
| |
| [] rdf:type fuseki:Server ; |
| fuseki:services ( |
| :service |
| ) . |
| |
| # Service description for "/dataset" with all endpoints. |
| :service rdf:type fuseki:Service ; |
| fuseki:name "dataset" ; |
| fuseki:endpoint [ |
| fuseki:operation fuseki:query ; |
| fuseki:name "query" |
| ] ; |
| fuseki:dataset :dataset ; |
| . |
| |
| # Dataset with only the default graph. |
| :dataset rdf:type ja:RDFDataset ; |
| ja:defaultGraph :model_inf ; |
| . |
| |
| # The inference model |
| :model_inf a ja:InfModel ; |
| ja:baseModel :baseModel ; |
| ja:reasoner [ |
| ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> |
| # For RDFS: use this instead: |
| ## ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner> |
| ] . |
| |
| # The base data. |
| :baseModel a ja:MemoryModel ; |
| ja:content [ja:externalContent <file:Data/data.ttl> ] ; |
| . |