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

Person.owl Example

Revision as of 13:03, 29 January 2008 by Unnamed Poltroon (Talk) (New page: <pre> <?xml version="1.0"?> <!-- ******************************************************************************* * Copyright (c) 2008 Parity Communications, Inc. * All rights res...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  <?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://xmlsoap/pcardstuff#">
  ]>
  <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="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: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;email"/>
			</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