Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Person.owl Example"

(New page: <pre> <?xml version="1.0"?> <!-- ******************************************************************************* * Copyright (c) 2008 Parity Communications, Inc. * All rights res...)
 
Line 1: Line 1:
 
<pre>
 
<pre>
  <?xml version="1.0"?>
+
<?xml version="1.0"?>
  <!--
+
<!--
  *******************************************************************************
+
*******************************************************************************
  * Copyright (c) 2008 Parity Communications, Inc.
+
* Copyright (c) 2008 Parity Communications, Inc.
  * All rights reserved. This document and accompanying materials  
+
* All rights reserved. This document and accompanying materials  
  * are made available under the terms of the Eclipse Public License v1.0
+
* are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
+
* which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
+
* http://www.eclipse.org/legal/epl-v10.html
  
  * Contributors:
+
* Contributors:
  * Paul Trevithick - initial vocabulary
+
* Paul Trevithick - initial vocabulary
  *******************************************************************************
+
*******************************************************************************
  -->
+
-->
  <!DOCTYPE rdf:RDF [
+
<!DOCTYPE rdf:RDF [
 
<!ENTITY higgins "http://www.eclipse.org/higgins/ontologies/2006/higgins#">
 
<!ENTITY higgins "http://www.eclipse.org/higgins/ontologies/2006/higgins#">
 
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
 
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
Line 19: Line 19:
 
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
 
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
 
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
 
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
<!ENTITY pcrd "http://xmlsoap/pcardstuff#">
+
<!ENTITY pcrd "http://schemas.xmlsoap.org/ws/2005/05/identity/claims#">
  ]>
+
]>
  <rdf:RDF xml:base="http://www.eclipse.org/higgins/ontologies/2008/person"  
+
<rdf:RDF xml:base="http://www.eclipse.org/higgins/ontologies/2008/person" xmlns:higgins="http://www.eclipse.org/higgins/ontologies/2006/higgins#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:pcrd="&pcrd;" xmlns:person="http://www.eclipse.org/higgins/ontologies/2008/person#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
  xmlns:higgins="http://www.eclipse.org/higgins/ontologies/2006/higgins#"
+
  xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:pcrd="http://xmlsoap/pcardstuff#"  
+
  xmlns:person="http://www.eclipse.org/higgins/ontologies/2008/person#"  
+
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"  
+
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"  
+
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
+
 
<owl:Ontology rdf:about="">
 
<owl:Ontology rdf:about="">
 
<owl:imports rdf:resource="file:///c:/higgins.owl"/>
 
<owl:imports rdf:resource="file:///c:/higgins.owl"/>
Line 41: Line 35:
 
<owl:Restriction>
 
<owl:Restriction>
 
<owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:maxCardinality>
 
<owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:maxCardinality>
<owl:onProperty rdf:resource="&pcrd;email"/>
+
<owl:onProperty rdf:resource="&pcrd;emailaddress"/>
 
</owl:Restriction>
 
</owl:Restriction>
 
</rdfs:subClassOf>
 
</rdfs:subClassOf>
Line 50: Line 44:
 
<rdfs:domain rdf:resource="#Person"/>
 
<rdfs:domain rdf:resource="#Person"/>
 
</owl:DatatypeProperty>
 
</owl:DatatypeProperty>
 
 
<owl:DatatypeProperty rdf:about="#email-group">
 
<owl:DatatypeProperty rdf:about="#email-group">
 
<rdfs:subPropertyOf rdf:resource="#contact-group"/>
 
<rdfs:subPropertyOf rdf:resource="#contact-group"/>
Line 61: Line 54:
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
<higgins:pattern>.+@.+</higgins:pattern>
 
<higgins:pattern>.+@.+</higgins:pattern>
<higgins:example>paul@socialphysics.org</higgins:example>
+
<higgins:example>paul@socialphysics.org</higgins:example>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<owl:DatatypeProperty rdf:about="&pcrd;email">
 
<owl:DatatypeProperty rdf:about="&pcrd;email">
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<higgins:attributeMetadata rdf:resource="email-metadata"/>
 
<higgins:attributeMetadata rdf:resource="email-metadata"/>
</owl:DatatypeProperty>
+
</owl:DatatypeProperty>
 
<higgins:AttributeMetadata rdf:ID="email-metadata">
 
<higgins:AttributeMetadata rdf:ID="email-metadata">
 
<higgins:comment>Generic email address as defined by Microsoft ISIP</higgins:comment>
 
<higgins:comment>Generic email address as defined by Microsoft ISIP</higgins:comment>
Line 74: Line 66:
 
<higgins:order>1</higgins:order>
 
<higgins:order>1</higgins:order>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<owl:DatatypeProperty rdf:about="#work-email">
 
<owl:DatatypeProperty rdf:about="#work-email">
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<higgins:attributeMetadata rdf:resource="#work-email-metadata"/>
 
<higgins:attributeMetadata rdf:resource="#work-email-metadata"/>
</owl:DatatypeProperty>
+
</owl:DatatypeProperty>
 
<higgins:AttributeMetadata rdf:ID="work-email-metadata">
 
<higgins:AttributeMetadata rdf:ID="work-email-metadata">
 
<higgins:comment>A person's work or "professional" email address</higgins:comment>
 
<higgins:comment>A person's work or "professional" email address</higgins:comment>
Line 85: Line 76:
 
<higgins:order>2</higgins:order>
 
<higgins:order>2</higgins:order>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<owl:DatatypeProperty rdf:ID="personal-email">
 
<owl:DatatypeProperty rdf:ID="personal-email">
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<rdfs:subPropertyOf rdf:resource="#email-group"/>
 
<higgins:attributeMetadata rdf:resource="#personal-email-metadata"/>
 
<higgins:attributeMetadata rdf:resource="#personal-email-metadata"/>
</owl:DatatypeProperty>
+
</owl:DatatypeProperty>
 
<higgins:AttributeMetadata rdf:ID="personal-email-metadata">
 
<higgins:AttributeMetadata rdf:ID="personal-email-metadata">
 
<higgins:comment>A person's personal email address</higgins:comment>
 
<higgins:comment>A person's personal email address</higgins:comment>
Line 96: Line 86:
 
<higgins:order>3</higgins:order>
 
<higgins:order>3</higgins:order>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<owl:DatatypeProperty rdf:about="&pcrd;phone">
 
<owl:DatatypeProperty rdf:about="&pcrd;phone">
 
<rdfs:domain rdf:resource="#Person"/>
 
<rdfs:domain rdf:resource="#Person"/>
 
<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
 
<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
 
<higgins:attributeMetadata rdf:resource="#phone-metadata"/>
 
<higgins:attributeMetadata rdf:resource="#phone-metadata"/>
</owl:DatatypeProperty>
+
</owl:DatatypeProperty>
 
<higgins:AttributeMetadata rdf:ID="phone-metadata">
 
<higgins:AttributeMetadata rdf:ID="phone-metadata">
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<owl:DatatypeProperty rdf:ID="eyeColor">
 
<owl:DatatypeProperty rdf:ID="eyeColor">
 
<rdfs:domain rdf:resource="#Person"/>
 
<rdfs:domain rdf:resource="#Person"/>
 
<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
 
<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
 
<higgins:attributeMetadata rdf:resource="#eyeColor-metadata"/>
 
<higgins:attributeMetadata rdf:resource="#eyeColor-metadata"/>
</owl:DatatypeProperty>
+
</owl:DatatypeProperty>
 
<higgins:AttributeMetadata rdf:ID="eyeColor-metadata">
 
<higgins:AttributeMetadata rdf:ID="eyeColor-metadata">
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
<rdfs:range rdf:resource="&xsd;normalizedString"/>
 
</higgins:AttributeMetadata>
 
</higgins:AttributeMetadata>
 
 
<!-- TEST INSTANCE DATA -->
 
<!-- TEST INSTANCE DATA -->
 
<person:Person rdf:about="#Mary">
 
<person:Person rdf:about="#Mary">
Line 123: Line 110:
 
<higgins:source rdf:datatype="&xsd;anyURI">@rmv*ma/$context+licenses//mary.ruddy3</higgins:source>
 
<higgins:source rdf:datatype="&xsd;anyURI">@rmv*ma/$context+licenses//mary.ruddy3</higgins:source>
 
</higgins:StatementMetadata>
 
</higgins:StatementMetadata>
  </rdf:RDF>
+
</rdf:RDF>
  
 
</pre>
 
</pre>

Revision as of 13:10, 29 January 2008

<?xml version="1.0"?>
<!--
*******************************************************************************
* Copyright (c) 2008 Parity Communications, Inc.
* All rights reserved. This document and accompanying materials 
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html

* Contributors:
* Paul Trevithick - initial vocabulary
*******************************************************************************
-->
<!DOCTYPE rdf:RDF [
	<!ENTITY higgins "http://www.eclipse.org/higgins/ontologies/2006/higgins#">
	<!ENTITY owl "http://www.w3.org/2002/07/owl#">
	<!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 pcrd "http://schemas.xmlsoap.org/ws/2005/05/identity/claims#">
]>
<rdf:RDF xml:base="http://www.eclipse.org/higgins/ontologies/2008/person" xmlns:higgins="http://www.eclipse.org/higgins/ontologies/2006/higgins#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:pcrd="&pcrd;" xmlns:person="http://www.eclipse.org/higgins/ontologies/2008/person#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
	<owl:Ontology rdf:about="">
		<owl:imports rdf:resource="file:///c:/higgins.owl"/>
		<owl:versionInfo>$Id$</owl:versionInfo>
		<rdfs:comment>Person class and related attributes</rdfs:comment>
		<rdfs:label/>
	</owl:Ontology>
	<owl:Ontology rdf:about="&higgins;.owl"/>
	<!-- The Person Class -->
	<owl:Class rdf:about="#Person">
		<rdfs:subClassOf rdf:resource="&higgins;DigitalSubject"/>
		<rdfs:subClassOf>
			<owl:Restriction>
				<owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:maxCardinality>
				<owl:onProperty rdf:resource="&pcrd;emailaddress"/>
			</owl:Restriction>
		</rdfs:subClassOf>
	</owl:Class>
	<!-- Attributes about a person-->
	<owl:DatatypeProperty rdf:about="#contact-group">
		<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
		<rdfs:domain rdf:resource="#Person"/>
	</owl:DatatypeProperty>
	<owl:DatatypeProperty rdf:about="#email-group">
		<rdfs:subPropertyOf rdf:resource="#contact-group"/>
		<higgins:attributeMetadata rdf:resource="#email-group-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="email-group-metadata">
		<higgins:comment>A person's email addresses</higgins:comment>
		<higgins:description>All Email addresses</higgins:description>
		<higgins:label xml:lang="en">Email Addresses</higgins:label>
		<rdfs:range rdf:resource="&xsd;normalizedString"/>
		<higgins:pattern>.+@.+</higgins:pattern>
		<higgins:example>paul@socialphysics.org</higgins:example>
	</higgins:AttributeMetadata>
	<owl:DatatypeProperty rdf:about="&pcrd;email">
		<rdfs:subPropertyOf rdf:resource="#email-group"/>
		<higgins:attributeMetadata rdf:resource="email-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="email-metadata">
		<higgins:comment>Generic email address as defined by Microsoft ISIP</higgins:comment>
		<higgins:description>Email address</higgins:description>
		<higgins:label xml:lang="en">Email</higgins:label>
		<higgins:order>1</higgins:order>
	</higgins:AttributeMetadata>
	<owl:DatatypeProperty rdf:about="#work-email">
		<rdfs:subPropertyOf rdf:resource="#email-group"/>
		<higgins:attributeMetadata rdf:resource="#work-email-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="work-email-metadata">
		<higgins:comment>A person's work or "professional" email address</higgins:comment>
		<higgins:description>Work Email address</higgins:description>
		<higgins:label xml:lang="en">Work Email</higgins:label>
		<higgins:order>2</higgins:order>
	</higgins:AttributeMetadata>
	<owl:DatatypeProperty rdf:ID="personal-email">
		<rdfs:subPropertyOf rdf:resource="#email-group"/>
		<higgins:attributeMetadata rdf:resource="#personal-email-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="personal-email-metadata">
		<higgins:comment>A person's personal email address</higgins:comment>
		<higgins:description>Personal Email address</higgins:description>
		<higgins:label xml:lang="en">Personal Email</higgins:label>
		<higgins:order>3</higgins:order>
	</higgins:AttributeMetadata>
	<owl:DatatypeProperty rdf:about="&pcrd;phone">
		<rdfs:domain rdf:resource="#Person"/>
		<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
		<higgins:attributeMetadata rdf:resource="#phone-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="phone-metadata">
		<rdfs:range rdf:resource="&xsd;normalizedString"/>
	</higgins:AttributeMetadata>
	<owl:DatatypeProperty rdf:ID="eyeColor">
		<rdfs:domain rdf:resource="#Person"/>
		<rdfs:subPropertyOf rdf:resource="&higgins;simpleAttribute"/>
		<higgins:attributeMetadata rdf:resource="#eyeColor-metadata"/>
	</owl:DatatypeProperty>
	<higgins:AttributeMetadata rdf:ID="eyeColor-metadata">
		<rdfs:range rdf:resource="&xsd;normalizedString"/>
	</higgins:AttributeMetadata>
	<!-- TEST INSTANCE DATA -->
	<person:Person rdf:about="#Mary">
		<person:eyeColor rdf:ID="mary-eyecolor">blue</person:eyeColor>
		<higgins:phoneNumber>555-1212</higgins:phoneNumber>
	</person:Person>
	<higgins:StatementMetadata rdf:about="#mary-eyecolor">
		<higgins:source rdf:datatype="&xsd;anyURI">@rmv*ma/$context+licenses//mary.ruddy3</higgins:source>
	</higgins:StatementMetadata>
</rdf:RDF>

Back to the top