You are viewing a plain text version of this content. The canonical link for it is here.
Posted to triplesoup-commits@incubator.apache.org by le...@apache.org on 2007/04/13 08:56:16 UTC

svn commit: r528394 [26/35] - in /incubator/triplesoup/donations/TRIPLES-3-RDFStore: ./ dbms/ dbms/client/ dbms/client/t/ dbms/dbmsproxy/ dbms/deamon/ dbms/doc/ dbms/include/ dbms/libdbms/ dbms/utils/ doc/ include/ lib/ lib/DBD/ lib/RDFStore/ lib/RDFSt...

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/owl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/owl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/owl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/owl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,266 @@
+<?xml version="1.0"?>
+<!DOCTYPE rdf:RDF [
+     <!ENTITY rdf  "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
+     <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
+     <!ENTITY xsd  "http://www.w3.org/2001/XMLSchema#" >
+     <!ENTITY owl  "http://www.w3.org/2002/07/owl#" >
+   ]>
+
+<rdf:RDF
+  xmlns     ="&owl;"
+  xmlns:owl ="&owl;"
+  xml:base  ="http://www.w3.org/2002/07/owl"
+  xmlns:rdf ="&rdf;"
+  xmlns:rdfs="&rdfs;"
+>
+
+<Ontology rdf:about="">
+  <imports rdf:resource="http://www.w3.org/2000/01/rdf-schema"/>
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/TR/2004/REC-owl-semantics-20040210/" />
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/TR/2004/REC-owl-test-20040210/" />
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/TR/2004/REC-owl-features-20040210/" />
+  <rdfs:comment>This file specifies in RDF Schema format the
+    built-in classes and properties that together form the basis of
+    the RDF/XML syntax of OWL Full, OWL DL and OWL Lite.
+    We do not expect people to import this file
+    explicitly into their ontology. People that do import this file
+    should expect their ontology to be an OWL Full ontology. 
+  </rdfs:comment>
+  <versionInfo>10 February 2004</versionInfo>
+</Ontology>
+
+<rdfs:Class rdf:ID="Class">
+  <rdfs:label>Class</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdfs;Class"/>
+</rdfs:Class>
+
+<Class rdf:ID="Thing">
+  <rdfs:label>Thing</rdfs:label>
+  <unionOf rdf:parseType="Collection">
+    <Class rdf:about="#Nothing"/>
+    <Class>
+      <complementOf rdf:resource="#Nothing"/>
+    </Class>
+  </unionOf>
+</Class>
+
+<Class rdf:ID="Nothing">
+  <rdfs:label>Nothing</rdfs:label>
+  <complementOf rdf:resource="#Thing"/>
+</Class>
+
+<rdf:Property rdf:ID="equivalentClass">
+  <rdfs:label>equivalentClass</rdfs:label>
+  <rdfs:subPropertyOf rdf:resource="&rdfs;subClassOf"/>
+  <rdfs:domain rdf:resource="#Class"/>
+  <rdfs:range rdf:resource="#Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="disjointWith">
+  <rdfs:label>disjointWith</rdfs:label>
+  <rdfs:domain rdf:resource="#Class"/>
+  <rdfs:range rdf:resource="#Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="equivalentProperty">
+  <rdfs:label>equivalentProperty</rdfs:label>
+  <rdfs:subPropertyOf rdf:resource="&rdfs;subPropertyOf"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="sameAs"> 
+  <rdfs:label>sameAs</rdfs:label>
+  <rdfs:domain rdf:resource="#Thing"/>
+  <rdfs:range rdf:resource="#Thing"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="differentFrom">
+  <rdfs:label>differentFrom</rdfs:label>
+  <rdfs:domain rdf:resource="#Thing"/>
+  <rdfs:range rdf:resource="#Thing"/>
+</rdf:Property>
+
+<rdfs:Class rdf:ID="AllDifferent">
+  <rdfs:label>AllDifferent</rdfs:label>
+</rdfs:Class>
+
+<rdf:Property rdf:ID="distinctMembers">
+  <rdfs:label>distinctMembers</rdfs:label>
+  <rdfs:domain rdf:resource="#AllDifferent"/>
+  <rdfs:range rdf:resource="&rdf;List"/>
+</rdf:Property>
+  
+<rdf:Property rdf:ID="unionOf">
+  <rdfs:label>unionOf</rdfs:label>
+  <rdfs:domain rdf:resource="#Class"/>
+  <rdfs:range rdf:resource="&rdf;List"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="intersectionOf">
+  <rdfs:label>intersectionOf</rdfs:label>
+  <rdfs:domain rdf:resource="#Class"/>
+  <rdfs:range rdf:resource="&rdf;List"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="complementOf">
+  <rdfs:label>complementOf</rdfs:label>
+  <rdfs:domain rdf:resource="#Class"/>
+  <rdfs:range rdf:resource="#Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="oneOf">
+  <rdfs:label>oneOf</rdfs:label>
+  <rdfs:domain rdf:resource="&rdfs;Class"/>
+  <rdfs:range rdf:resource="&rdf;List"/>
+</rdf:Property>
+
+<rdfs:Class rdf:ID="Restriction">
+  <rdfs:label>Restriction</rdfs:label>
+  <rdfs:subClassOf rdf:resource="#Class"/>
+</rdfs:Class>
+
+<rdf:Property rdf:ID="onProperty">
+  <rdfs:label>onProperty</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&rdf;Property"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="allValuesFrom">
+  <rdfs:label>allValuesFrom</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&rdfs;Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="hasValue">
+  <rdfs:label>hasValue</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="someValuesFrom">
+  <rdfs:label>someValuesFrom</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&rdfs;Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="minCardinality">
+  <rdfs:label>minCardinality</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&xsd;nonNegativeInteger"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="maxCardinality">
+  <rdfs:label>maxCardinality</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&xsd;nonNegativeInteger"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="cardinality">
+  <rdfs:label>cardinality</rdfs:label>
+  <rdfs:domain rdf:resource="#Restriction"/>
+  <rdfs:range rdf:resource="&xsd;nonNegativeInteger"/>
+</rdf:Property>
+
+<rdfs:Class rdf:ID="ObjectProperty">
+  <rdfs:label>ObjectProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="DatatypeProperty">
+  <rdfs:label>DatatypeProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<rdf:Property rdf:ID="inverseOf">
+  <rdfs:label>inverseOf</rdfs:label>
+  <rdfs:domain rdf:resource="#ObjectProperty"/>
+  <rdfs:range rdf:resource="#ObjectProperty"/>
+</rdf:Property>
+
+<rdfs:Class rdf:ID="TransitiveProperty">
+  <rdfs:label>TransitiveProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="#ObjectProperty"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="SymmetricProperty">
+  <rdfs:label>SymmetricProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="#ObjectProperty"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="FunctionalProperty">
+  <rdfs:label>FunctionalProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="InverseFunctionalProperty">
+  <rdfs:label>InverseFunctionalProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&owl;ObjectProperty"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="AnnotationProperty">
+  <rdfs:label>AnnotationProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<AnnotationProperty rdf:about="&rdfs;label"/>
+<AnnotationProperty rdf:about="&rdfs;comment"/>
+<AnnotationProperty rdf:about="&rdfs;seeAlso"/>
+<AnnotationProperty rdf:about="&rdfs;isDefinedBy"/>
+
+<rdfs:Class rdf:ID="Ontology">
+  <rdfs:label>Ontology</rdfs:label>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="OntologyProperty">
+  <rdfs:label>OntologyProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<rdf:Property rdf:ID="imports">
+  <rdfs:label>imports</rdfs:label>
+  <rdf:type rdf:resource="#OntologyProperty"/>
+  <rdfs:domain rdf:resource="#Ontology"/>
+  <rdfs:range rdf:resource="#Ontology"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="versionInfo">
+  <rdfs:label>versionInfo</rdfs:label>
+  <rdf:type rdf:resource="#AnnotationProperty"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="priorVersion">
+  <rdfs:label>priorVersion</rdfs:label>
+  <rdf:type rdf:resource="#OntologyProperty"/>
+  <rdfs:domain rdf:resource="#Ontology"/>
+  <rdfs:range rdf:resource="#Ontology"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="backwardCompatibleWith">
+  <rdfs:label>backwardCompatibleWith</rdfs:label>
+  <rdf:type rdf:resource="#OntologyProperty"/>
+  <rdfs:domain rdf:resource="#Ontology"/>
+  <rdfs:range rdf:resource="#Ontology"/>
+</rdf:Property>
+
+<rdf:Property rdf:ID="incompatibleWith">
+  <rdfs:label>incompatibleWith</rdfs:label>
+  <rdf:type rdf:resource="#OntologyProperty"/>
+  <rdfs:domain rdf:resource="#Ontology"/>
+  <rdfs:range rdf:resource="#Ontology"/>
+</rdf:Property>
+
+<rdfs:Class rdf:ID="DeprecatedClass">
+  <rdfs:label>DeprecatedClass</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdfs;Class"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="DeprecatedProperty">
+  <rdfs:label>DeprecatedProperty</rdfs:label>
+  <rdfs:subClassOf rdf:resource="&rdf;Property"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:ID="DataRange">
+  <rdfs:label>DataRange</rdfs:label>
+</rdfs:Class>
+
+</rdf:RDF>
+
+

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rdf-schema
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rdf-schema?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rdf-schema (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rdf-schema Fri Apr 13 01:56:01 2007
@@ -0,0 +1,130 @@
+<rdf:RDF
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+   xmlns:owl="http://www.w3.org/2002/07/owl#" 
+   xmlns:dc="http://purl.org/dc/elements/1.1/">
+
+ <owl:Ontology 
+     rdf:about="http://www.w3.org/2000/01/rdf-schema#"
+     dc:title="The RDF Schema vocabulary (RDFS)"/>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#Resource">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>Resource</rdfs:label>
+  <rdfs:comment>The class resource, everything.</rdfs:comment>
+</rdfs:Class>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#Class">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>Class</rdfs:label>
+  <rdfs:comment>The class of classes.</rdfs:comment>
+  <rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+</rdfs:Class>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#subClassOf">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>subClassOf</rdfs:label>
+  <rdfs:comment>The subject is a subclass of a class.</rdfs:comment>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
+  <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#subPropertyOf">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>subPropertyOf</rdfs:label>
+  <rdfs:comment>The subject is a subproperty of a property.</rdfs:comment>
+  <rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
+  <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#comment">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>comment</rdfs:label>
+  <rdfs:comment>A description of the subject resource.</rdfs:comment>
+  <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#label">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>label</rdfs:label>
+  <rdfs:comment>A human-readable name for the subject.</rdfs:comment>
+  <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#domain">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>domain</rdfs:label>
+  <rdfs:comment>A domain of the subject property.</rdfs:comment>
+ <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
+  <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#range">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>range</rdfs:label>
+  <rdfs:comment>A range of the subject property.</rdfs:comment>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
+  <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#seeAlso">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>seeAlso</rdfs:label>
+  <rdfs:comment>Further information about the subject resource.</rdfs:comment>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:domain   rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#isDefinedBy">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:subPropertyOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#seeAlso"/>
+  <rdfs:label>isDefinedBy</rdfs:label>
+  <rdfs:comment>The defininition of the subject resource.</rdfs:comment>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+</rdf:Property>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#Literal">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>Literal</rdfs:label>
+  <rdfs:comment>The class of literal values, eg. textual strings and integers.</rdfs:comment>
+  <rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+</rdfs:Class>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#Container">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>Container</rdfs:label>
+  <rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:comment>The class of RDF containers.</rdfs:comment>
+</rdfs:Class>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>ContainerMembershipProperty</rdfs:label>
+  <rdfs:comment>The class of container membership properties, rdf:_1, rdf:_2, ...,
+                    all of which are sub-properties of 'member'.</rdfs:comment>
+  <rdfs:subClassOf rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
+</rdfs:Class>
+
+<rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#member">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>member</rdfs:label>
+  <rdfs:comment>A member of the subject resource.</rdfs:comment>
+  <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+  <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
+</rdf:Property>
+
+<rdfs:Class rdf:about="http://www.w3.org/2000/01/rdf-schema#Datatype">
+  <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>
+  <rdfs:label>Datatype</rdfs:label>
+  <rdfs:comment>The class of RDF datatypes.</rdfs:comment>
+  <rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
+</rdfs:Class>
+	
+<rdf:Description rdf:about="http://www.w3.org/2000/01/rdf-schema#">
+  <rdfs:seeAlso rdf:resource="http://www.w3.org/2000/01/rdf-schema-more"/>
+</rdf:Description>
+
+</rdf:RDF>

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rss-schema.rdf
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rss-schema.rdf?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rss-schema.rdf (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/rss-schema.rdf Fri Apr 13 01:56:01 2007
@@ -0,0 +1,90 @@
+<?xml version="1.0" ?> 
+<!-- 
+ 
+RDF Schema declaration for RSS Rich Site Summary 
+
+For RSS 1.0 (candidate release 1) http://purl.org/rss/1.0/
+
+note: This schema currently is defining RSS-specific constructs (resource
+and relationship types) only. No contraints have been introduced.
+
+Note: this schema is represented in the RDF M&S abbreviated syntax
+http://www.w3.org/TR/REC-rdf-syntax/#abbreviatedSyntax for
+syntactic inclusion in an HTML/XHTML document
+ --> 
+ 
+<rdf:RDF 
+     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+     xmlns:dc="http://purl.org/dc/elements/1.1/">
+
+ <!--  Class declarations   --> 
+
+ <rdfs:Class rdf:about="http://purl.org/rss/1.0/channel"
+   rdfs:label="Channel"
+   rdfs:comment="An information syndication channel">
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="http://purl.org/rss/1.0/image">
+   rdfs:label="Image"
+   rdfs:comment="An image associated wth a syndication channel">
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="http://purl.org/rss/1.0/item"
+   rdfs:label="Item"
+   rdfs:comment="An item for syndication.">
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="http://purl.org/rss/1.0/items"
+   rdfs:label="Items"
+   rdfs:comment="A collection of items.">
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="http://purl.org/rss/1.0/textinput"
+   rdfs:label="Text Input"
+   rdfs:comment="A text input for syndication.">
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdfs:Class>
+
+  <!--  Property declarations   --> 
+
+ <rdf:Property rdf:about="http://purl.org/rss/1.0/title"
+    rdfs:label="Title"
+    rdfs:comment="A descriptive title for the channel.">
+   <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/elements/1.1/title" /> 
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdf:Property>
+
+ <rdf:Property rdf:about="http://purl.org/rss/1.0/link"
+    rdfs:label="Link"
+    rdfs:comment="The URL to which an HTML rendering of the channel title will link.">
+   <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/elements/1.1/identifier" /> 
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdf:Property>
+
+ <rdf:Property rdf:about="http://purl.org/rss/1.0/url"
+    rdfs:label="URL"
+    rdfs:comment="The URL of the image to used in the 'src' attribute of the channel's image tag when rendered as HTML.">
+   <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/elements/1.1/identifier" /> 
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdf:Property>
+
+ <rdf:Property rdf:about="http://purl.org/rss/1.0/description"
+    rdfs:label="Description"
+    rdfs:comment="The URL to which an HTML rendering of the channel title will link.">
+   <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/elements/1.1/description" /> 
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdf:Property>
+
+ <rdf:Property rdf:about="http://purl.org/rss/1.0/name"
+    rdfs:label="Name"
+    rdfs:comment="The text input field's (variable) name.">
+   <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/elements/1.1/identifier" /> 
+   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/" /> 
+ </rdf:Property>
+
+</rdf:RDF>

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-core
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-core?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-core (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-core Fri Apr 13 01:56:01 2007
@@ -0,0 +1,304 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE rdf:RDF [
+	<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+	<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
+	<!ENTITY dc "http://purl.org/dc/elements/1.1/">
+	<!ENTITY dct "http://purl.org/dc/terms/">
+	<!ENTITY foaf "http://xmlns.com/foaf/0.1/">
+	<!ENTITY owl "http://www.w3.org/2002/07/owl#">
+	<!ENTITY vs "http://www.w3.org/2003/06/sw-vocab-status/ns#">
+]>
+<rdf:RDF xml:base="http://www.w3.org/2004/02/skos/core" xmlns:rdf="&rdf;" xmlns:rdfs="&rdfs;" xmlns:dc="&dc;" xmlns:dct="&dct;" xmlns:owl="&owl;" xmlns:vs="&vs;">
+	
+	<!-- 
+	This is the SKOS Core RDF Vocabulary for describing thesauri, terminologies, glossaries and 
+	similar sorts of knowledge organisation system.  
+	
+	Current documentation:
+	
+	SKOS Core Guide: http://www.w3.org/2001/sw/Europe/reports/thes/1.0/guide/
+	SKOS Core Guidelines for Migration: http://www.w3.org/2001/sw/Europe/reports/thes/1.0/migrate/
+	
+	This is an evolving RDF vocabulary - all modification are reported to the SKOS Changelog
+	http://esw.w3.org/mt/esw/archives/cat_skos_changelog.html
+	
+	To contribute to development of this vocabulary, subscribe to the public-esw-thes@w3.org 
+	mailing list.
+	
+	See also:
+	
+	SKOS Core home page: http://www.w3.org/2004/02/skos/core/
+	Mailing list archive: http://lists.w3.org/Archives/Public/public-esw-thes/
+	SkosDev wiki: http://esw.w3.org/topic/SkosDev
+	-->
+
+	<!-- Description of this schema -->
+	
+	<rdf:Description rdf:about="">
+		<dc:title>SKOS Core RDF Vocabulary</dc:title>
+		<dc:description>An RDF schema for encoding simple concept schemes such as thesauri and subject heading schemes.</dc:description>
+		<dc:creator>Alistair Miles</dc:creator>
+		<dc:creator>Nikki Rogers</dc:creator>
+		<dc:creator>Dave Beckett</dc:creator>
+		<dc:contributor>Members of the public-esw-thes@w3.org mailing list.</dc:contributor>
+		<dct:modified>2004-08-19</dct:modified>
+	</rdf:Description>
+	
+	<!-- Fundamental classes -->
+
+	<rdfs:Class rdf:ID="ConceptScheme">
+		<rdfs:label>Concept Scheme</rdfs:label>
+		<rdfs:comment>A concept scheme is a collection of concepts.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdfs:Class>
+	
+	<rdfs:Class rdf:ID="Concept">
+		<rdfs:label>Concept</rdfs:label>
+		<rdfs:comment>A concept is any unit of thought that can be defined or described.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdfs:Class>
+
+  <!-- 
+  N.B. skos:TopConcept is now deprecated.  To indicate that a concept is a top concept in
+  a scheme, now use the skos:hasTopConcept property.
+  -->
+  
+	<owl:DeprecatedClass rdf:ID="TopConcept">
+		<rdfs:label>Top Concept</rdfs:label>
+		<rdfs:comment>A concept that sits at the top of the concept hierarchy.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+		<owl:versionInfo>This class is now deprecated.  To indicate that a concept is a top concept in a scheme, now use the skos:hasTopConcept property.</owl:versionInfo>
+    <dct:isReplacedBy rdf:resource="#hasTopConcept"/>
+		<dct:modified>2004-08-19</dct:modified>
+	</owl:DeprecatedClass>
+	
+	<!-- Basic properties of concept schemes -->
+	
+	<!-- 
+	N.B. the skos:hasTopConcept property now replaces the deprecated skos:TopConcept class.
+	-->
+	
+	<rdf:Property rdf:ID="hasTopConcept">
+	  <rdfs:label>has top concept</rdfs:label>
+		<rdfs:domain rdf:resource="#ConceptScheme"/>
+		<rdfs:range rdf:resource="#Concept"/>
+	  <rdfs:comment>Use this property to indicate that a concept is a top concept in a specific concept scheme.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+		<owl:versionInfo>This property replaces the deprecated skos:TopConcept class.</owl:versionInfo>
+		<dct:replaces rdf:resource="#TopConcept"/>
+		<dct:created>2004-08-19</dct:created>
+	</rdf:Property>
+		
+	<!-- Basic properties of concepts -->
+
+	<rdf:Property rdf:ID="inScheme">
+		<rdfs:label>in scheme</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;isDefinedBy"/>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:range rdf:resource="#ConceptScheme"/>
+		<rdfs:comment>Use this property to state that a concept is a part of some concept scheme.  A concept may be a part of more than one scheme.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="prefLabel">
+		<rdfs:label>preferred label</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;label"/>
+		<rdfs:comment>Use this property to indicate a preferred label for a resource.  If the resource is a concept in some conceptual scheme, then it is strongly recommended that the preferred label be a unique label within that scheme.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="altLabel">
+		<rdfs:label>alternative label</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;label"/>
+		<rdfs:comment>Use this property to indicate an alternative (non-preferred) label for a resource.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+
+	<rdf:Property rdf:ID="prefSymbol">
+		<rdfs:label>preferred symbol</rdfs:label>
+		<rdfs:domain rdf:resource="&rdf;Resource"/>
+		<rdfs:range rdf:resource="&foaf;Image"/>
+		<rdfs:comment>Use this property to indicate a preferred symbolic representation for a resource.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="altSymbol">
+		<rdfs:label>alternative symbol</rdfs:label>
+		<rdfs:domain rdf:resource="&rdf;Resource"/>
+		<rdfs:range rdf:resource="&foaf;Image"/>
+		<rdfs:comment>Use this property to indicate an alternative (non-preferred) symbolic representation for a resource.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+
+	<rdf:Property rdf:ID="externalID">
+		<rdfs:label>identifier</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdf;value"/>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:comment>Use or extend this property to indicate any non-URI code that is used to uniquely identify a concept within a conceptual scheme.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="semanticRelation">
+		<rdfs:label>semantic relation</rdfs:label>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:range rdf:resource="#Concept"/>
+		<rdfs:comment>This is the super-property of all properties used to make statements about how concepts within the same conceptual scheme relate to each other.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<!-- Basic semantic relation properties -->
+	
+	<rdf:Property rdf:ID="broader">
+		<rdfs:label>has broader</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#semanticRelation"/>
+		<rdfs:comment>This property carries weak semantics.  It may be used to state that the object is in some way more general in meaning than the subject.  Essentially it provides a means of organising concepts into a hierarchy (tree), without being restrictive about the exact semantic implications of the hierarchical structure itself.  Extend this property to create properties that carry stronger semantics, but may be reduced to a hierarchical structure for simple visual displays.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="narrower">
+		<rdfs:label>has narrower</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#semanticRelation"/>
+		<owl:inverseOf rdf:resource="#broader"/>
+		<rdfs:comment>This property is the inverse of the 'broader' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="related">
+		<rdfs:label>related to</rdfs:label>
+		<rdf:type rdf:resource="&owl;SymmetricProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#semanticRelation"/>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;seeAlso"/>
+		<rdfs:comment>This property carries weak semantics.  It may be used to state that that the object is in some way related to the subject, and the relationship is NOT to be treated as hierarchical.  Essentially it provides a means of linking concepts in different branches of a hierarchy (tree).  Extend this property to create properties with stronger semantics, but may still be reduced to an associative structure for simple visual display.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<!-- Semantic relation property extensions -->
+	
+	<rdf:Property rdf:ID="broaderInstantive">
+		<rdfs:label>instance of</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#broader"/>
+		<rdfs:subPropertyOf rdf:resource="&rdf;type"/>
+		<rdfs:comment>An extension of the 'broader' property to specify the instantiation (instance of) relationship between two concepts.  This property is semantically equivalent to the 'rdf:type' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="narrowerInstantive">
+		<rdfs:label>has instance</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#narrower"/>
+		<owl:inverseOf rdf:resource="#broaderInstantive"/>
+		<rdfs:comment>This property is the inverse of the 'broaderInstantive' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="broaderGeneric">
+		<rdfs:label>sub-class of</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#broader"/>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;subClassOf"/>
+		<rdfs:comment>An extension of the 'broader' property to specify the class subsumption (sub-class/super-class) relationship between two concepts.  This property is semantically equivalent to the 'rdfs:subClassOf' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="narrowerGeneric">
+		<rdfs:label>super-class of</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#narrower"/>
+		<owl:inverseOf rdf:resource="#broaderGeneric"/>
+		<rdfs:comment>This property is the inverse of the 'broaderGeneric' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="broaderPartitive">
+		<rdfs:label>part of</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#broader"/>
+		<rdfs:subPropertyOf rdf:resource="&dct;isPartOf"/>
+		<rdfs:comment>An extension of the 'broader' property to specify a partitive (part of) relationship between two concepts.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="narrowerPartitive">
+		<rdfs:label>has part</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#narrower"/>
+		<rdfs:subPropertyOf rdf:resource="&dct;hasPart"/>
+		<owl:inverseOf rdf:resource="#broaderPartitive"/>
+		<rdfs:comment>This property is the inverse of the 'broaderPartitive' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+
+	<rdf:Property rdf:ID="relatedPartOf">
+		<rdfs:label>part of</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#related"/>
+		<rdfs:subPropertyOf rdf:resource="&dct;isPartOf"/>
+		<rdfs:comment>An extension of the 'related' property.  Use this property to express a partitive relationship between concepts, where it is desired that such a relationship be treated as associative (i.e. linking separate branches of a hierarchy) and NOT hierarchical.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>
+
+	<rdf:Property rdf:ID="relatedHasPart">
+		<rdfs:label>has part</rdfs:label>
+		<rdf:type rdf:resource="&owl;TransitiveProperty"/>
+		<rdfs:subPropertyOf rdf:resource="#related"/>
+		<rdfs:subPropertyOf rdf:resource="&dct;hasPart"/>
+		<owl:inverseOf rdf:resource="#relatedPartOf"/>
+		<rdfs:comment>This property is the inverse of the 'relatedPartOf' property.</rdfs:comment>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>unstable</vs:term_status>
+	</rdf:Property>	
+
+	<!-- Scope notes, definitions and examples -->
+	
+	<rdf:Property rdf:ID="scopeNote">
+		<rdfs:label>scope note</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;comment"/>
+		<rdfs:comment>A scope note is a piece of text that in some way helps to elucidate the intended meaning of a concept.</rdfs:comment>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="definition">
+		<rdfs:label>definition</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;comment"/>
+		<rdfs:comment>A formal (dictionary style) definition of the intended meaning of a concept.</rdfs:comment>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+	
+	<rdf:Property rdf:ID="example">
+		<rdfs:label>example</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="&rdfs;comment"/>
+		<rdfs:comment>A contextual example of the use of a concept, that helps to elucidate its intended meaning.</rdfs:comment>
+		<rdfs:domain rdf:resource="#Concept"/>
+		<rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core"/>
+		<vs:term_status>testing</vs:term_status>
+	</rdf:Property>
+
+	<!-- N.B. use the foaf:depiction property to attach an image depicting a concept. -->
+		
+</rdf:RDF>

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-mapping
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-mapping?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-mapping (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/skos-mapping Fri Apr 13 01:56:01 2007
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE rdf:RDF [
+	<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+	<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
+	<!ENTITY dc "http://purl.org/dc/elements/1.1/">
+	<!ENTITY dct "http://purl.org/dc/terms/">
+]>
+<rdf:RDF xmlns:rdf="&rdf;" xmlns:rdfs="&rdfs;" xmlns:dc="&dc;" xmlns:dct="&dct;" xml:base="http://www.w3.org/2004/02/skos/mapping">
+	<!-- Description of this schema -->
+	<rdf:Description rdf:about="">
+		<dc:title>SKOS Mapping RDF Vocabulary</dc:title>
+		<dc:description>This vocabulary allows you to express information about how statements made using concepts from some conceptual scheme may be transformed into statements with concepts from a different scheme.  So for example it can be used for automated query transformation.  Or It could be used to create a virtual subject index for a collection in terms of an alternative classification system.</dc:description>
+		<dc:creator>Alistair Miles</dc:creator>
+		<rdfs:seeAlso rdf:resource="http://www.w3.org/2001/sw/Europe/reports/thes/8.4/"/>
+		<dct:modified>2004-08-16</dct:modified>
+	</rdf:Description>
+	<!-- Mapping relation properties -->
+	<rdf:Property rdf:ID="mappingRelation">
+		<rdfs:label>mapping-relation</rdfs:label>
+		<rdfs:comment>The super-property of all properties expressing information about how to create mappings between concepts frmo different conceptual schemes.</rdfs:comment>
+	</rdf:Property>
+	<rdf:Property rdf:ID="exactMatch">
+		<rdfs:label>has-exact-match</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#mappingRelation"/>
+		<rdfs:comment>If two concepts are an 'exact-match' then the set of resources properly indexed against the first concept is identical to the set of resources properly indexed against the second.  Therefore the two concepts may be interchanged in queries and subject-based indexes.</rdfs:comment>
+	</rdf:Property>
+	<rdf:Property rdf:ID="broadMatch">
+		<rdfs:label>has-broad-match</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#mappingRelation"/>
+		<rdfs:comment>If 'concept A has-broad-match concept B' then the set of resources properly indexed against concept A is a subset of the set of resources properly indexed against concept B.</rdfs:comment>
+	</rdf:Property>
+	<rdf:Property rdf:ID="narrowMatch">
+		<rdfs:label>has-narrow-match</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#mappingRelation"/>
+		<rdfs:comment>If 'concept A has-narrow-match concept B' then the set of resources properly indexed against concept A is a superset of the set of resources properly indexed against concept B.</rdfs:comment>
+	</rdf:Property>
+	<rdf:Property rdf:ID="majorMatch">
+		<rdfs:label>has-major-match</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#mappingRelation"/>
+		<rdfs:comment>If 'concept A has-major-match concept B' then the set of resources properly indexed against concept A shares more than 50% of its members with the set of resources properly indexed against concept B.</rdfs:comment>
+	</rdf:Property>
+	<rdf:Property rdf:ID="minorMatch">
+		<rdfs:label>has-minor-match</rdfs:label>
+		<rdfs:subPropertyOf rdf:resource="#mappingRelation"/>
+		<rdfs:comment>If 'concept A has-minor-match concept B' then the set of resources properly indexed against concept A shares less than 50% but greater than 0 of its members with the set of resources properly indexed against concept B.</rdfs:comment>
+	</rdf:Property>
+	<!-- Combination constructs -->
+	<rdfs:Class rdf:ID="AND">
+		<rdfs:label>AND</rdfs:label>
+		<rdfs:subClassOf rdf:resource="&rdf;Bag"/>
+		<rdfs:comment>This class is a shorthand for an intersection construct.  So the statement 'concept A has-exact-match AND (concept B, concept C)' implies that the set of resources properly indexed against concept A is identical to the intersection of the sets properly indexed against concepts B and C.  </rdfs:comment>
+	</rdfs:Class>
+	<rdfs:Class rdf:ID="OR">
+		<rdfs:label>OR</rdfs:label>
+		<rdfs:subClassOf rdf:resource="&rdf;Bag"/>
+		<rdfs:comment>This class is a shorthand for a union construct.  So the statement 'concept A has-exact-match OR (concept B, concept C)' implies that the set of resources properly indexed against concept A is identical to the union of the sets properly indexed against concepts B and C.  </rdfs:comment>
+	</rdfs:Class>
+	<rdfs:Class rdf:ID="NOT">
+		<rdfs:label>NOT</rdfs:label>
+		<rdfs:subClassOf rdf:resource="&rdf;Bag"/>
+		<rdfs:comment>This class is a shorthand for a negation construct.  So the statement 'concept A has-exact-match AND (concept B, NOT (concept C))' implies that the set of resources properly indexed against concept A is identical to the intersection of the set properly indexed against concept B and the complement of the set properly indexed against concept C.</rdfs:comment>
+	</rdfs:Class>
+</rdf:RDF>

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/wgs84_pos.xml
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/wgs84_pos.xml?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/wgs84_pos.xml (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/wgs84_pos.xml Fri Apr 13 01:56:01 2007
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="rdfs-xhtml.xsl"?>
+
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+
+<rdf:Description rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#">
+ <dc:title>WGS84 Geo Positioning: an RDF vocabulary</dc:title>
+ <dc:description>A vocabulary for representing latitude, longitude and altitude information in the WGS84 geodetic reference datum. Version $Id: wgs84_pos.xml,v 1.1 2003/02/05 00:14:14 areggiori Exp $. See http://www.w3.org/2003/01/geo/ for more details.</dc:description>
+ <dc:date>$Date: 2003/02/05 00:14:14 $</dc:date>
+ <rdfs:label>geo</rdfs:label>
+
+ <rdfs:comment>
+Recent changes to this namespace:
+$Log: wgs84_pos.xml,v $
+Revision 1.1  2003/02/05 00:14:14  areggiori
+major update - close to 0.50 release - see CHANGES for more info
+
+Revision 1.12  2003/01/12 01:41:41  danbri
+Trying local copy of XSLT doc.
+
+Revision 1.11  2003/01/12 01:20:18  danbri
+added a link to morten's xslt rdfs viewer.
+
+Revision 1.10  2003/01/11 18:56:49  danbri
+Removed datatype range from lat and long properties, since they would
+have required each occurance of the property to mention the datatype.
+
+Revision 1.9  2003/01/11 11:41:31  danbri
+Another typo; repaired rdfs:Property to rdf:Property x4
+
+Revision 1.8  2003/01/11 11:05:02  danbri
+Added an rdfs:range for each lat/long/alt property,
+http://www.w3.org/2001/XMLSchema#float
+
+Revision 1.7  2003/01/10 20:25:16  danbri
+Longer rdfs:comment for Point, trying to be Earth-centric and neutral about
+coordinate system(s) at the same time. Feedback welcomed.
+
+Revision 1.6  2003/01/10 20:18:30  danbri
+Added CVS log comments into the RDF/XML as an rdfs:comment property of the
+vocabulary. Note that this is not common practice (but seems both harmless
+and potentially useful).
+
+
+revision 1.5
+date: 2003/01/10 20:14:31;  author: danbri;  state: Exp;  lines: +16 -5
+Updated schema:
+Added a dc:date, added url for more info. Changed the rdfs:label of the
+namespace from gp to geo. Added a class Point, set as the rdfs:domain of
+each property. Added XML comment on the lat_long property suggesting that
+we might not need it (based on #rdfig commentary from implementors).
+
+revision 1.4
+date: 2003/01/10 20:01:07;  author: danbri;  state: Exp;  lines: +6 -5
+Fixed typo; several rdfs:about attributes are now rdf:about. Thanks to MortenF in
+#rdfig for catching this error.
+
+revision 1.3
+date: 2003/01/10 11:59:03;  author: danbri;  state: Exp;  lines: +4 -3
+fixed buglet in vocab, added more wgs links
+
+revision 1.2
+date: 2003/01/10 11:01:11;  author: danbri;  state: Exp;  lines: +4 -4
+Removed alt from the as-a-flat-string property, and switched from
+space separated to comma separated.
+
+revision 1.1
+date: 2003/01/10 10:53:23;  author: danbri;  state: Exp;
+basic geo vocab
+
+</rdfs:comment>
+
+</rdf:Description>
+
+
+<rdfs:Class rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#Point">
+ <rdfs:label>Point</rdfs:label>
+ <rdfs:comment>A point, typically described using a coordinate system relative to Earth, such as WGS84.</rdfs:comment>
+</rdfs:Class>
+
+
+<rdf:Property rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#lat">
+ <rdfs:domain rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#Point" />
+ <rdfs:label>latitute</rdfs:label>
+ <rdfs:comment>The WGS84 latitude of a Point.</rdfs:comment>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#long">
+ <rdfs:domain rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#Point" />
+ <rdfs:label>longitude</rdfs:label>
+ <rdfs:comment>The WGS84 longitude of a Point.</rdfs:comment>
+</rdf:Property>
+
+<rdf:Property rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#alt">
+ <rdfs:domain rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#Point" />
+ <rdfs:label>altitude</rdfs:label>
+ <rdfs:comment>The WGS84 altitude of a Point.</rdfs:comment>
+</rdf:Property>
+
+<!-- not sure we really need this -->
+<rdf:Property rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#lat_long">
+ <rdfs:label>lat/long</rdfs:label>
+ <rdfs:comment>A comma-separated representation of a latitude, longitude coordinate.</rdfs:comment>
+</rdf:Property>
+
+</rdf:RDF>

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/xml.rdf
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/xml.rdf?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/xml.rdf (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rdf/vocabularies/xml.rdf Fri Apr 13 01:56:01 2007
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- this can be decoded as US-ASCII or iso-8859-1 as well,
     since it contains no characters outside the US-ASCII repertoire -->
<!-- $Id: xml.rdf,v 1.2 2002/10/13 19:21:50 areggiori Exp $ -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
 xmlns="http://www.w3.org/2001/04/infoset#">

<!-- 

 This RDF schema's namespace name

  http://www.w3.org/2001/04/infoset#

 will only be used to describe the infoitems and properties defined in
 the corresponding version of the XML Infoset specification, which is

  http://www.w3.org/TR/2001/WD-xml-infoset-20010316

 Any new version of the specification that changes the infoitems or
 properties will have a new RDF schema with a different namespace
 name.

 This RDF schema for the XML Infoset is not a normative part of the 
 XML Infoset Specification.  If this schema is found not to match
 the normative text o
 f the specification, it will be corrected without
 changing the namespace name.

-->

<!--Enumeration classes and their members-->

<rdfs:Class ID="AttributeType"/>
<AttributeType ID="AttributeType.ID"/>
<AttributeType ID="AttributeType.IDREF"/>
<AttributeType ID="AttributeType.IDREFS"/>
<AttributeType ID="AttributeType.ENTITY"/>
<AttributeType ID="AttributeType.ENTITIES"/>
<AttributeType ID="AttributeType.NMTOKEN"/>
<AttributeType ID="AttributeType.NMTOKENS"/>
<AttributeType ID="AttributeType.NOTATION"/>
<AttributeType ID="AttributeType.CDATA"/>
<AttributeType ID="AttributeType.ENUMERATION"/>

<rdfs:Class ID="Boolean"/>
<Boolean ID="Boolean.true"/>
<Boolean ID="Boolean.false"/>

<rdfs:Class ID="Standalone"/>
<Standalone ID="Standalone.yes"/>
<Standalone ID="Standalone.no"/>

<rdfs:Class ID="Unknown">
  <rdfs:subClassOf resource="#AttributeType"/>
  <rdfs:subClassOf resource="#Literal"/>
  <rdfs:subClassOf resource="#Boolean"/>
  <rdfs:subClassOf resource="#Notation"/>
  <rd
 fs:subClassOf resource="#References"/>
</rdfs:Class>
<Unknown ID="Unknown.unknown"/>

<rdfs:Class ID="NoValue">
  <rdfs:subClassOf resource="#AttributeType"/>
  <rdfs:subClassOf resource="#Literal"/>
  <rdfs:subClassOf resource="#Boolean"/>
  <rdfs:subClassOf resource="#Standalone"/>
  <rdfs:subClassOf resource="#Notation"/>
  <rdfs:subClassOf resource="#References"/>
</rdfs:Class>
<Unknown ID="NoValue.noValue"/>

<!-- Property classes derived from standard classes -->

<rdfs:Class ID="Literal"/>

<rdf:Description about="http://www.w3.org/2000/01/rdf-schema#Literal">
  <rdfs:subClassOf resource="#Literal"/>
</rdf:Description>

<rdfs:Class ID="Integer">
  <rdfs:subClassOf resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Class>


<!--Info item classes-->

<rdfs:Class ID="InfoItem"/>

<rdfs:Class ID="Document">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="Element">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class I
 D="Attribute">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="ProcessingInstruction">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="Character">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="UnexpandedEntityReference">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="Comment">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="DocumentTypeDeclaration">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="UnparsedEntity">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="Notation">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<rdfs:Class ID="Namespace">
  <rdfs:subClassOf resource="#InfoItem"/>
</rdfs:Class>

<!-- Set containers -->

<rdfs:Class ID="InfoItemSet">
  <rdfs:subClassOf resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag"/>
</rdfs:Class>

<rdfs:Class ID="AttributeSet">
  <rdfs:subCl
 assOf resource="#InfoItemSet"/>
</rdfs:Class>

<rdfs:Class ID="UnparsedEntitySet">
  <rdfs:subClassOf resource="#InfoItemSet"/>
</rdfs:Class>

<rdfs:Class ID="NamespaceSet">
  <rdfs:subClassOf resource="#InfoItemSet"/>
</rdfs:Class>

<rdfs:Class ID="NotationSet">
  <rdfs:subClassOf resource="#InfoItemSet"/>
</rdfs:Class>


<!-- Sequence containers -->

<rdfs:Class ID="InfoItemSeq">
  <rdfs:subClassOf resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/>
  <rdfs:subClassOf resource="#References"/>
</rdfs:Class>

<rdfs:Class ID="References"/>

<!--Info item properties-->

<rdfs:Property ID="allDeclarationsProcessed">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="#Boolean"/>
</rdfs:Property>

<rdfs:Property ID="attributes">
  <rdfs:domain resource="#Element"/>
  <rdfs:range resource="#AttributeSet"/>
</rdfs:Property>

<rdfs:Property ID="attributeType">
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="#AttributeType"/>
</rdfs:Property>

<rdfs:
 Property ID="baseURI">
  <rdfs:domain resource="#Document"/>
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#ProcessingInstruction"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="characterCode">
  <rdfs:domain resource="#Character"/>
  <rdfs:range resource="#Integer"/>
</rdfs:Property>

<rdfs:Property ID="characterEncodingScheme">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="children">
  <rdfs:domain resource="#Document"/>
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#DocumentTypeDeclaration"/>
  <rdfs:range resource="#InfoItemSeq"/>
</rdfs:Property>

<rdfs:Property ID="content">
  <rdfs:domain resource="#ProcessingInstruction"/>
  <rdfs:domain resource="#Comment"/>
  <rdfs:range resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="namespaceAttributes">
  <rdfs:domain resour
 ce="#Element"/>
  <rdfs:range resource="#AttributeSet"/>
</rdfs:Property>

<rdfs:Property ID="declarationBaseURI">
  <rdfs:domain resource="#UnexpandedEntityReference"/>
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:domain resource="#Notation"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="documentElement">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="#Element"/>
</rdfs:Property>

<rdfs:Property ID="elementContentWhitespace">
  <rdfs:domain resource="#Character"/>
  <rdfs:range resource="#Boolean"/>
</rdfs:Property>

<rdfs:Property ID="unparsedEntities">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="#UnparsedEntitySet"/>
</rdfs:Property>

<rdfs:Property ID="inScopeNamespaces">
  <rdfs:domain resource="#Element"/>
  <rdfs:range resource="#NamespaceSet"/>
</rdfs:Property>

<rdfs:Property ID="localName">
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="http://ww
 w.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="name">
  <rdfs:domain resource="#UnexpandedEntityReference"/>
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:domain resource="#Notation"/>
  <rdfs:range resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="namespaceName">
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#Attribute"/>
  <rdfs:domain resource="#Namespace"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="normalizedValue">
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="notation">
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:range resource="#Notation"/>
</rdfs:Property>

<rdfs:Property ID="notationName">
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="notations">
  <rdfs:domain re
 source="#Document"/>
  <rdfs:range resource="#NotationSet"/>
</rdfs:Property>

<rdfs:Property ID="ownerElement">
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="#Element"/>
</rdfs:Property>

<rdfs:Property ID="parent">
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#ProcessingInstruction"/>
  <rdfs:domain resource="#Character"/>
  <rdfs:domain resource="#UnexpandedEntityReference"/>
  <rdfs:domain resource="#Comment"/>
  <rdfs:domain resource="#DocumentTypeDeclaration"/>
  <rdfs:range resource="#InfoItem"/>
</rdfs:Property>

<rdfs:Property ID="prefix">
  <rdfs:domain resource="#Namespace"/>
  <rdfs:domain resource="#Element"/>
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="publicIdentifier">
  <rdfs:domain resource="#UnexpandedEntityReference"/>
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:domain resource="#DocumentTypeDeclaration"/>
  <rdfs:domain resource="#Notation"/>
  <
 rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="references">
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="#References"/>
</rdfs:Property>

<rdfs:Property ID="specified">
  <rdfs:domain resource="#Attribute"/>
  <rdfs:range resource="#Boolean"/>
</rdfs:Property>

<rdfs:Property ID="standalone">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="#Standalone"/>
</rdfs:Property>

<rdfs:Property ID="systemIdentifier">
  <rdfs:domain resource="#UnexpandedEntityReference"/>
  <rdfs:domain resource="#UnparsedEntity"/>
  <rdfs:domain resource="#DocumentTypeDeclaration"/>
  <rdfs:domain resource="#Notation"/>
  <rdfs:range resource="#Literal"/>
</rdfs:Property>

<rdfs:Property ID="target">
  <rdfs:domain resource="#ProcessingInstruction"/>
  <rdfs:range resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdfs:Property>

<rdfs:Property ID="version">
  <rdfs:domain resource="#Document"/>
  <rdfs:range resource="#Literal"/>
</rdf
 s:Property>

</rdf:RDF>
\ No newline at end of file

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-api.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-api.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-api.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-api.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,37 @@
+#!/usr/bin/perl
+
+use RDFStore::NodeFactory;
+use RDFStore::Parser::SiRPAC;
+use RDFStore::Vocabulary::RDF;
+
+my $factory = new RDFStore::NodeFactory();
+
+my $p=new RDFStore::Parser::SiRPAC(
+		Style => 'RDFStore::Parser::Styles::RDFStore::Model',
+                NodeFactory =>          $factory,
+                style_options   => { store_options => { FreeText => 1 } } );
+
+my $model = $p->parsefile("http://www.kanzaki.com/info/rss.rdf");
+
+#Stanford API
+my $iterator = $model->find( undef, $RDFStore::Vocabulary::RDF::type, $factory->createResource("http://purl.org/rss/1.0/item") )->elements;
+
+while ( my $st = $iterator->each ) {
+	print "each: ",$st->toString,"\n";
+	};
+
+# or
+for ( 	my $st = $iterator->first;
+	$iterator->hasnext;
+	$st = $iterator->next ) {
+	print "for: ",$st->toString,"\n";
+	};
+
+#free-text Stanford API - i.e. literal contains 'XML' or 'recodings'
+$iterator = $model->find( undef, $factory->createResource("http://purl.org/rss/1.0/title"), undef, undef, 0, 'xMl','recodings' )->elements;
+while ( my $st = $iterator->each ) {
+	print "freetext: ",$st->toString,"\n";
+	};
+
+#serialise back to some strawman RDF
+my $strawman_rdf = $model->toStrawmanRDF;

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-rdql.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-rdql.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-rdql.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/rss10-rdql.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,68 @@
+#!/usr/bin/perl
+
+use DBI;
+
+my  $dbh= DBI->connect("DBI:RDFStore:", "dan", 0 );
+
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?title, ?link
+FROM <http://www.kanzaki.com/info/rss.rdf>
+WHERE
+        (?item, <rdf:type>, <rss:item>),
+        (?item, <rss::title>, ?title),
+        (?item, <rss::link>, ?link)
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rss for <http://purl.org/rss/1.0/>
+QUERY
+$query->execute();
+my ($title,$link);
+$query->bind_columns(\$title, \$link);
+
+while ($query->fetch()) {
+        print "title=",$title->toString," link=".$link->toString,"\n";
+        };
+$query->finish();
+
+#or free-text (actually we have to agree whether or not to use =~ and bind free-text matched to a query var)
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?title, ?link
+FROM <http://www.kanzaki.com/info/rss.rdf>
+WHERE
+	(?item, <rss::title>, %"RDF"%),
+        (?item, <rdf:type>, <rss:item>),
+        (?item, <rss::title>, ?title),
+        (?item, <rss::link>, ?link)
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rss for <http://purl.org/rss/1.0/>
+QUERY
+$query->execute();
+my ($title,$link);
+$query->bind_columns(\$title, \$link);
+while ($query->fetch()) {
+        print "freetext: title=",$title->toString," link=".$link->toString,"\n";
+        };
+$query->finish();
+
+#or with LIKE - which is a bit less efficient and using perl regex engine
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?title, ?link
+FROM <http://www.kanzaki.com/info/rss.rdf>
+WHERE
+        (?item, <rdf:type>, <rss:item>),
+        (?item, <rss::title>, ?title),
+        (?item, <rss::link>, ?link)
+AND
+	?title LIKE '/Rdf/i'
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rss for <http://purl.org/rss/1.0/>
+QUERY
+$query->execute();
+my ($title,$link);
+$query->bind_columns(\$title, \$link);
+while ($query->fetch()) {
+        print "freetext like: title=",$title->toString," link=".$link->toString,"\n";
+        };
+$query->finish();

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/schema-validator.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/schema-validator.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/schema-validator.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/schema-validator.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,125 @@
+#!/usr/bin/perl
+##############################################################################
+# 	Copyright (c) 2000-2006 All rights reserved
+# 	Alberto Reggiori <ar...@webweaving.org>
+#	Dirk-Willem van Gulik <di...@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <ar...@webweaving.org> and
+#        Dirk-Willem van Gulik <di...@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+
+# this is the script validates an RDF model against an RDF schemas
+
+use Carp;
+use RDFStore::NodeFactory;
+use RDFStore::Model;
+use RDFStore::SchemaModel;
+use RDFStore::Parser::SiRPAC;
+
+my $Usage =<<EOU;
+Usage is:
+    $0 <instance URL> <schema URL>
+
+Validates a given RDF URL against a RDF Schema (URL)
+
+EOU
+
+# Process options
+print $Usage and exit if ($#ARGV<1);
+
+my @schemas = ();
+
+my ($outputDirectory, $packageClass, $namespace, $factoryStr);
+
+my $f = new RDFStore::NodeFactory();
+my $rawSchema = new RDFStore::Model();
+
+my $fileNameOrURL = shift @ARGV;
+print STDERR "READING INSTANCE: ". $fileNameOrURL.".....";
+
+my $p=new RDFStore::Parser::SiRPAC(
+				ErrorContext => 3,
+                                Style => 'RDFStore::Parser::Styles::RDFStore::Model',
+                                NodeFactory     => $f,
+                                Source  => $fileNameOrURL,
+                                );
+my $m = $p->parsefile($fileNameOrURL);
+
+print STDERR "DONE\n";
+
+my $schemaURL = shift @ARGV;
+print STDERR "READING SCHEMA: ". $schemaURL.".....";
+
+my $ps=new RDFStore::Parser::SiRPAC(
+				ErrorContext => 3,
+                                Style => 'RDFStore::Parser::Styles::RDFStore::Model',
+                                NodeFactory     => $f,
+                                Source  => $schemaURL,
+                                );
+my $ms = $ps->parsefile($schemaURL);
+
+print STDERR "DONE\n";
+
+my $schema_validator = new RDFStore::SchemaModel( $m, $ms );
+
+my $valid = $schema_validator->validateRawSchema($m, $ms);
+
+print "Model is ";
+print "NOT "
+	if(!(defined $valid));
+print "valid\n";

Propchange: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/schema-validator.pl
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-api.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-api.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-api.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-api.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,63 @@
+#!/usr/bin/perl
+
+use RDFStore::NodeFactory;
+use RDFStore::Parser::SiRPAC;
+use RDFStore::Vocabulary::RDF;  # handy prepared properties and classes from RDF, RDFS and DAML+OIL namespaces
+use RDFStore::Vocabulary::RDFS; # otherwise you need to create them via the RDFStore::NodeFactory
+use RDFStore::Vocabulary::DAML;
+
+my $factory = new RDFStore::NodeFactory();
+
+my $p=new RDFStore::Parser::SiRPAC(
+		Style => 'RDFStore::Parser::Styles::RDFStore::Model',
+                NodeFactory =>          $factory,
+                style_options   => { store_options => { FreeText => 1 } } ); # by default free-text indexing of literals is not done i.e. faster :)
+
+my $model = $p->parsefile("http://sweet.jpl.nasa.gov/sweet/humanactivities.daml");
+
+#Stanford API
+my $iterator = $model->find( undef, $RDFStore::Vocabulary::RDF::type, $RDFStore::Vocabulary::DAML::Class )->elements;
+
+while ( my $st = $iterator->each ) {
+	print "each: ",$st->toString,"\n";
+	};
+
+# or
+for ( 	my $st = $iterator->first;
+	$iterator->hasnext;
+	$st = $iterator->next ) {
+	print "for: ",$st->toString,"\n";
+	my $subject = $st->subject;
+	my $predicate = $st->predicate;
+	};
+
+#free-text Stanford API - i.e. and rdfs:label which contains the words 'Management' or 'Storage'
+# NOTE: 
+#       1) stemming on words is not yet available as feature
+#       2) the 4th parameter to find() is for the context of the triples (not used or explained here - still sperimental and diffuclt to eplain still :)
+#
+$iterator = $model->find( undef, $RDFStore::Vocabulary::RDFS::label, undef, undef, 0, 'MANAgemeNT','STORaGe' )->elements; # note the case insesitive match on free-text
+while ( my $st = $iterator->each ) {
+	print "freetext: ",$st->toString,"\n";
+	};
+
+#or if you want to parse and store your ontology at the same time
+my $p1=new RDFStore::Parser::SiRPAC(
+		Style => 'RDFStore::Parser::Styles::RDFStore::Model',
+                NodeFactory =>          $factory,
+                style_options   => { store_options => { Name => 'daml', Sync => 1, FreeText => 1 } } ); # which stores *on disk* the BDB files in the subdir daml/
+
+my $model1 = $p1->parsefile("http://sweet.jpl.nasa.gov/sweet/humanactivities.daml");
+
+my $iterator1 = $model1->find( undef, $RDFStore::Vocabulary::RDF::type, $RDFStore::Vocabulary::DAML::Class )->elements;
+while ( my $object = $iterator1->each_object ) {
+	print "(stored) each: ",$object->toString,"\n";
+	};
+
+# or if you do have the files already parsed and stored into daml/ subdir on disk
+my $model2 = new RDFStore::Model( Name => 'daml', nodeFactory => $factory , Mode => 'r' );
+
+my $iterator2 = $model2->find( undef, $RDFStore::Vocabulary::RDF::type, $RDFStore::Vocabulary::DAML::Class )->elements;
+while ( my $subject = $iterator2->each_subject ) {
+	print "(previously stored) each: ",$subject->toString,"\n";
+	};

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-rdql.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-rdql.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-rdql.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/sweet-rdql.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,130 @@
+#!/usr/bin/perl
+
+use DBI;
+
+my  $dbh= DBI->connect("DBI:RDFStore:", "sweet", 0 );
+
+my $query = $dbh->prepare(<<QUERY); # FROM clause means fetch the URL, parse it as RDF and store it into an in-memory rdfstore :)
+SELECT ?class, ?label, ?creator
+FROM <http://sweet.jpl.nasa.gov/sweet/humanactivities.daml>
+WHERE
+        (?class, <rdf:type>, <daml:Class>),
+        (?class, <rdfs:label>, ?label),
+        (?class, <oiled:creator>, ?creator)
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rdfs for <http://www.w3.org/2000/01/rdf-schema#>,
+        oiled for <http://img.cs.man.ac.uk/oil/oiled#>,
+	daml for <http://www.daml.org/2001/03/daml+oil#>
+QUERY
+$query->execute();
+my ($class,$label,$creator);
+$query->bind_columns(\$class, \$label, \$creator);
+
+while ($query->fetch()) {
+        print "class=",$class->toString," label=".$label->toString," creator=".$creator->toString."\n";
+        };
+$query->finish();
+
+#or free-text (actually the RDQL syntax has to formally whether or not to use =~ and bind free-text matched to a query var)
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?class, ?label, ?creator
+FROM <http://sweet.jpl.nasa.gov/sweet/humanactivities.daml>
+WHERE
+        (?class, <rdfs:label>, %"Management"%),
+        (?class, <rdf:type>, <daml:Class>),
+        (?class, <rdfs:label>, ?label),
+        (?class, <oiled:creator>, ?creator)
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rdfs for <http://www.w3.org/2000/01/rdf-schema#>,
+        oiled for <http://img.cs.man.ac.uk/oil/oiled#>,
+	daml for <http://www.daml.org/2001/03/daml+oil#>
+QUERY
+$query->execute();
+my ($class,$label,$creator);
+$query->bind_columns(\$class, \$label, \$creator);
+
+while ($query->fetch()) {
+        print "freetext: class=",$class->toString," label=".$label->toString," creator=".$creator->toString."\n";
+        };
+$query->finish();
+
+#or with LIKE - which is a bit less efficient and using perl regex engine (but allows stemming :)
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?class, ?label, ?creator
+FROM <http://sweet.jpl.nasa.gov/sweet/humanactivities.daml>
+WHERE
+        (?class, <rdf:type>, <daml:Class>),
+        (?class, <rdfs:label>, ?label),
+        (?class, <oiled:creator>, ?creator)
+
+AND
+	?label LIKE '/agement/i'
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rdfs for <http://www.w3.org/2000/01/rdf-schema#>,
+        oiled for <http://img.cs.man.ac.uk/oil/oiled#>,
+	daml for <http://www.daml.org/2001/03/daml+oil#>
+QUERY
+$query->execute();
+my ($class,$label,$creator);
+$query->bind_columns(\$class, \$label, \$creator);
+
+while ($query->fetch()) {
+        print "freetext LIKE: class=",$class->toString," label=".$label->toString," creator=".$creator->toString."\n";
+        };
+$query->finish();
+
+# or SQL like boolean expressions
+my $query = $dbh->prepare(<<QUERY);
+SELECT ?class, ?label, ?creator
+FROM <http://sweet.jpl.nasa.gov/sweet/humanactivities.daml>
+WHERE
+        (?class, <rdf:type>, <daml:Class>),
+        (?class, <rdfs:label>, ?label),
+        (?class, <oiled:creator>, ?creator)
+
+AND
+	( ?label LIKE '/agement/i' ) || ( ?creator eq 'raskin' )
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rdfs for <http://www.w3.org/2000/01/rdf-schema#>,
+        oiled for <http://img.cs.man.ac.uk/oil/oiled#>,
+	daml for <http://www.daml.org/2001/03/daml+oil#>
+QUERY
+$query->execute();
+my ($class,$label,$creator);
+$query->bind_columns(\$class, \$label, \$creator);
+
+while ($query->fetch()) {
+        print "SQL-ish: class=",$class->toString," label=".$label->toString," creator=".$creator->toString."\n";
+        };
+$query->finish();
+
+# or if you have your daml/ subdir with your ontologies already in
+my  $dbh1= DBI->connect("DBI:RDFStore:database=daml", "sweet", 0 );
+
+my $query = $dbh1->prepare(<<QUERY); # we do not have a FROM clause because we are reading triples from the database daml/
+SELECT ?class, ?label, ?creator
+WHERE
+        (?class, <rdf:type>, <daml:Class>),
+        (?class, <rdfs:label>, ?label),
+        (?class, <oiled:creator>, ?creator)
+
+AND
+	( ?label LIKE '/agement/i' ) || ( ?creator eq 'raskin' )
+USING
+        rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
+        rdfs for <http://www.w3.org/2000/01/rdf-schema#>,
+        oiled for <http://img.cs.man.ac.uk/oil/oiled#>,
+	daml for <http://www.daml.org/2001/03/daml+oil#>
+QUERY
+$query->execute();
+my ($class,$label,$creator);
+$query->bind_columns(\$class, \$label, \$creator);
+
+while ($query->fetch()) {
+        print "stored SQL-ish: class=",$class->toString," label=".$label->toString," creator=".$creator->toString."\n";
+        };
+$query->finish();

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/test.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/test.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/test.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/test.pl Fri Apr 13 01:56:01 2007
@@ -0,0 +1,115 @@
+#!/usr/local/bin/perl -I ../lib
+##############################################################################
+# 	Copyright (c) 2000-2006 All rights reserved
+# 	Alberto Reggiori <ar...@webweaving.org>
+#	Dirk-Willem van Gulik <di...@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <ar...@webweaving.org> and
+#        Dirk-Willem van Gulik <di...@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+use RDFStore::NodeFactory;
+use RDFStore::Model;
+use File::Path qw(rmtree);
+
+unless($#ARGV>=2) {
+	print STDERR "\nUsage: <subject> <predicate> (<object> | 'object')\n\n";
+	exit;
+};
+
+my $factory= new RDFStore::NodeFactory();
+my $statement = $factory->createStatement(
+			$factory->createResource($ARGV[0]),
+			$factory->createResource($ARGV[1]),
+			($#ARGV>2) ? $factory->createLiteral($ARGV[2]) : $factory->createResource($ARGV[2])
+					);
+my $statement0 = $factory->createStatement(
+			$factory->createResource($ARGV[0]),
+			$factory->createResource($ARGV[0]),
+			($#ARGV>2) ? $factory->createLiteral($ARGV[2]) : $factory->createResource($ARGV[2])
+					);
+my $statement1 = $factory->createStatement($factory->createResource("http://www.altavista.com"),$factory->createResource("http://pen.jrc.it/schema/1.0/#author"),$factory->createLiteral("Alberto Reggiori"));
+
+my $statement2 = $factory->createStatement($factory->createUniqueResource(),$factory->createUniqueResource(),$factory->createLiteral(""));
+
+my $model = new RDFStore::Model(Name => 'test', Style => "BerkeleyDB", Split => 3);
+
+$model->add($statement);
+$model->add($statement0);
+$model->add($statement1);
+$model->add($statement2);
+
+my $found = $model->find($statement->subject,undef,$statement->object);
+my($found_elements) = $found->elements;
+for ( my $st = $found_elements->first; $found_elements->hasnext; $st= $found_elements->next ) {
+	print $st->getLabel(),"\n";
+};
+
+my $model1 = $model->duplicate();
+#print $model1->getDigest->equals($model1->getDigest),"\n";
+#print $model1->getDigest->hashCode,"\n";
+
+print "The following should give the same results due that is a duplicate model :-)\n";
+
+$found = $model1->find($statement->subject,undef,$statement->object);
+($found_elements) = $found->elements;
+for ( my $st = $found_elements->first; $found_elements->hasnext; $st= $found_elements->next ) {
+	print $st->getLabel(),"\n";
+};
+eval{
+rmtree('test');
+};

Propchange: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/test.pl
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/xslt/QNameToURI.htm
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/xslt/QNameToURI.htm?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/xslt/QNameToURI.htm (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/samples/xslt/QNameToURI.htm Fri Apr 13 01:56:01 2007
@@ -0,0 +1,53 @@
+
+<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<TITLE>Mapping of Namespace qualified element names (QNames) to URIs</TITLE>
+<META NAME="keywords" CONTENT="XML,RDF,XLink,namespace,URI">
+<LINK href="../OHCG_Style.css" rel="stylesheet"/>
+</HEAD>
+<BODY>
+<H2>Mapping namespace qualitied element names to URIs</H2>
+<H2>a proposal</H2>
+<P>It is necessary to map namespace qualified element 
+names (<A href="http://web3.w3.org/TR/REC-xml-names/#ns-qualnames">QNames</A>) to URIs for a variety of purposes but particularly in RDF. The 
+RDF Model and Syntax specification directs this <A href="http://web3.w3.org/TR/REC-rdf-syntax/#grammar">mapping</A> to occur via concatenation of the namespace URI 
+with the local name. This is acceptable when the namespace URI does 
+not end with a character which cannot be used to begin an element 
+name (an <A href="http://web3.w3.org/TR/REC-xml-names/#NT-NCName">NCName</A>) i.e. a <A href="http://www.w3.org/TR/REC-xml#NT-Letter">Letter</A> or 
+'_', because the first non Letter or '_' encountered from the end of the URI can 
+be used to delimit the namespace URI from the element name. Yet when the URI 
+ends in a Letter or '_', several URI, NCName pairs may map to the same 
+concatenated URI.</P>
+<P>It is proposed for namespace URIs that when a namespace URI ends in a Letter 
+or '_' that a '#' be inserted between the namespace URI and the element tag name 
+to create the resultant URI. When such a URI is resolvable to a resource of 
+media type text/html or text/xml, the fragment identifier resolves to an 
+identifier of the element name. When the document is of type text/html, the 
+identifier might point to a section which describes the element. When the 
+document is of type text/xml (or application/xml) and the base document contains 
+an RDF Schema, the identifier is expected to point to the Property or Class 
+definition for the element name.</P>
+<P>This mapping has the additional effect of constraining the vocabulary or 
+grammar for a given namespace to those specified by the authority which controls 
+the base URI. In particular when resolution of the URI involves a DNS lookup, 
+the ultimate authority is the Administrative Contact for the root DNS name, 
+though this contact may delegate authority for derivatives of this DNS entry as 
+it sees fit. For example given a root DNS entry:</P>
+<P>openhealth.org</P>
+<P><A href="ftp://openhealth.org">ftp://openhealth.org</A></P>
+<P><A href="http://www.openhealth.org">http://www.openhealth.org</A></P>
+<P><A href="http://www.openhealth.org/RDF/">http://www.openhealth.org/RDF/</A></P>
+<P>are derivatives which might be administered 
+independently. If the namespace URI does resolve to a document, the absense of a 
+particular fragment identifier might indicate that the element name is not part 
+of the vocabulary associated with the namespace 
+URI. In any case, given this mapping of a namespace qualified element name to a URI, the ability to create
+new element names within a given namespace URI qualified XML namespace is the same as the ability to create new URIs derived from the namespace URI.</P>
+<P>Jonathan Borden</P>
+<P><a href="http://www.openhealth.org">The Open Healthcare Group</a></P>
+<P>September 17, 2000</P>
+<P>&nbsp;</P>
+<P>&nbsp;</P>
+</BODY>
+</HTML>