Add support for ont:deprecatedBy and owl:sameAs
authorMo McRoberts <mo.mcroberts@bbc.co.uk>
Mon, 12 May 2014 10:44:44 +0100
changeset 47 b4f9085116b1
parent 43 bed61692a97c
child 48 cfe2a5d1cf37
Add support for ont:deprecatedBy and owl:sameAs
classes.php
--- a/classes.php	Tue Oct 08 10:39:08 2013 +0100
+++ b/classes.php	Mon May 12 10:44:44 2014 +0100
@@ -307,6 +307,8 @@
                 $html .= "  <tr><th>URI:</th> <td>".$term->htmlLink()."</td></tr>\n";
                 $html .= $term->propertyRow("Label", "rdfs:label");
                 $html .= $term->propertyRow("Status", "vs:term_status");
+				$html .= $term->propertyRow("Equivalent to", "owl:sameAs");
+				$html .= $term->propertyRow("Deprecated by", "ont:deprecatedBy");
                 $html .= $term->propertyRow("Sub-classes", "^rdfs:subClassOf");
                 $html .= $term->propertyRow("Sub-properties", "^rdfs:subPropertyOf");
                 $html .= $term->propertyRow("Parent class", "rdfs:subClassOf");
@@ -340,7 +342,8 @@
     # Extra namespaces we use
     EasyRdf_Namespace::set('vann', 'http://purl.org/vocab/vann/');
     EasyRdf_Namespace::set('vs', 'http://www.w3.org/2003/06/sw-vocab-status/ns#');
-
+	EasyRdf_Namespace::set('ont', 'http://purl.org/net/ns/ontology-annot#');
+	
     ## Add mappings
     EasyRdf_TypeMapper::set('owl:Ontology', 'Phpspecgen_Vocab');
     EasyRdf_TypeMapper::set('owl:Class', 'Phpspecgen_Class');