| ## Licensed to the Apache Software Foundation (ASF) under one |
| ## or more contributor license agreements. See the NOTICE file |
| ## distributed with this work for additional information |
| ## regarding copyright ownership. The ASF licenses this file |
| ## to you under the Apache License, Version 2.0 (the |
| ## "License"); you may not use this file except in compliance |
| ## with the License. You may obtain a copy of the License at |
| ## |
| ## http://www.apache.org/licenses/LICENSE-2.0 |
| ## |
| ## Unless required by applicable law or agreed to in writing, software |
| ## distributed under the License is distributed on an "AS IS" BASIS, |
| ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ## See the License for the specific language governing permissions and |
| ## limitations under the License. |
| |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| |
| @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . |
| |
| @prefix dc: <http://purl.org/dc/elements/1.1/> . |
| @prefix eg: <http://www.example.org/> . |
| |
| # |
| # dm - ont document manager |
| # lm - LocationMapper |
| # |
| @prefix dm: <http://jena.hpl.hp.com/schemas/2003/03/ont-manager#> . |
| @prefix lm: <http://jena.hpl.hp.com/2004/08/location-mapping#> . |
| |
| @prefix : <#> . |
| @prefix h: <file:///home/kers/projects/Scratch/kers/Data/> . |
| |
| <> rdfs:comment "Examples for documenting the Assembler specifications" ; |
| dc:creator "Chris Dollin" ; |
| dc:creator "the Jena team" ; |
| dc:subject "" ; |
| dc:title "Assembler examples" ; |
| dc:description "Assembler examples" ; |
| dc:date "2005-11-30" ; |
| dc:format "RDF" ; |
| dc:identifier : |
| . |
| |
| eg:opening-example a ja:MemoryModel |
| ; ja:content [ja:externalContent <file:Data/example.ttl>] |
| . |
| |
| eg:common-example a ja:MemoryModel |
| ; ja:content [ja:externalContent <file:Data/A.rdf>] |
| ; ja:content [ja:externalContent <file:Data/B.rdf>] |
| ; ja:content eg:sharedContent |
| . |
| |
| eg:sharedContent |
| ja:externalContent <http://somewhere/RDF/ont.owl> |
| . |
| |
| eg:external-content-example |
| ja:externalContent <file:Data/C.owl> |
| ; ja:externalContent <http://jena.hpl.hp.com/some-jena-data.rdf> |
| . |
| |
| eg:literal-content-example |
| ja:literalContent "_:it dc:title 'Interesting Times'" |
| . |
| |
| eg:fileModel-example-1 |
| ja:modelName "simple" |
| ; ja:directory <file:///tmp> |
| . |
| |
| eg:fileModel-example-2 |
| ja:modelName "http://somewhere.org/stuff.ttl" |
| ; ja:mapName ja:true |
| ; ja:directory <file:FileModels> |
| . |
| |
| eg:database-example |
| ja:modelName "Thunderbird3" |
| ; ja:connection eg:connection |
| . |
| |
| eg:connection |
| ja:dbURL <jdbc:mysql://localhost/test> |
| ; ja:dbType "MySQL" |
| ; ja:dbUser "cjd" |
| . |
| |
| eg:inference-example |
| ja:reasoner [ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner>] |
| ; ja:baseModel [a ja:MemoryModel] |
| . |
| |
| eg:db-inference-example |
| ja:reasoner [ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner>] |
| ; ja:baseModel eg:database-example |
| . |
| |
| eg:external-inference-example |
| ja:reasoner |
| [ja:reasonerURL <http://jena.hpl.hp.com/2003/DIGReasoner> |
| ; <http://jena.hpl.hp.com/2003/JenaReasoner#extReasonerURL> <http://localhost:2004/>] |
| . |
| |
| eg:rule-inference-example |
| ja:reasoner |
| [ja:rule '[r1: (?x my:P ?y) -> (?x rdf:type my:T)]' |
| ] |
| . |
| |
| eg:simple-ont-example |
| ja:ontModelSpec ja:OWL_DL_MEM_RULE_INF |
| . |
| |
| eg:base-ont-example |
| ja:baseModel [a ja:MemoryModel; ja:content [ja:externalContent <http://jena.hpl.hp.com/some-jena-data.rdf>]] |
| . |
| |
| eg:document-manager-example |
| ja:fileManager [ja:locationMapper eg:mapper] |
| ; ja:meta [dm:altURL <http://localhost/RDF/my-alt.rdf>] |
| . |
| |
| eg:mapper lm:mapping [ lm:name "file:foo.ttl" ; lm:altName "file:etc/foo.ttl" ] |
| . |
| |