# (c) Copyright 2005 Hewlett-Packard Development Company, LP
# All rights reserved.
# $Id: examples.n3,v 1.1 2006/01/05 14:24:22 chris-dollin Exp $

@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 jr:         <http://jena.hpl.hp.com/2003/08/Assembler.ReificationMode#> .

@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:publisher     "HP" ;
    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.n3>]
    .
        
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.n3"
	; 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.n3" ; lm:altName "file:etc/foo.n3" ]
    .

