org.openanzo.jastor.inference
Class OntologyComment

java.lang.Object
  extended by org.openanzo.jastor.inference.OntologyComment

public class OntologyComment
extends java.lang.Object

Represents content to be added to the definition of a property or class as a comment, i.e. javadoc. The methods in this class provide mappings of name-value pairs in various categories DC, RDFS, etc...

Author:
Joe Betz, Ben Szekely (bhszekel@us.ibm.com)

Constructor Summary
OntologyComment(INamedGraph ontGraph, org.openrdf.model.Resource commentedResource)
          Create a new comment with the given resource
 
Method Summary
 java.util.List<java.lang.String> getAuthors()
          Get this comment's authors info
 java.lang.String getDCProperty(java.lang.String name)
          Get a specific DC property
 java.lang.String getLabel()
          Get this comment's label
 java.lang.String getRDFSProperty(java.lang.String name)
          Get the value for this property
 java.lang.String getVersionInfo()
          Get this comment's version info
 java.lang.String[] listDCPropertyNames()
          Get the DC property names
 java.lang.String[] listRDFSPropertyNames()
          Get the set of properties for this comment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyComment

public OntologyComment(INamedGraph ontGraph,
                       org.openrdf.model.Resource commentedResource)
Create a new comment with the given resource

Parameters:
ontGraph - source of ontology data
commentedResource - the resource of the property or class being commented
Method Detail

getLabel

public java.lang.String getLabel()
Get this comment's label

Returns:
this comment's label

getVersionInfo

public java.lang.String getVersionInfo()
Get this comment's version info

Returns:
this comment's version info

getAuthors

public java.util.List<java.lang.String> getAuthors()
Get this comment's authors info

Returns:
this comment's authors info

listRDFSPropertyNames

public java.lang.String[] listRDFSPropertyNames()
Get the set of properties for this comment

Returns:
the set of properties for this comment

getRDFSProperty

public java.lang.String getRDFSProperty(java.lang.String name)
Get the value for this property

Parameters:
name - name of property to get
Returns:
the value for this property

listDCPropertyNames

public java.lang.String[] listDCPropertyNames()
Get the DC property names

Returns:
the DC property names

getDCProperty

public java.lang.String getDCProperty(java.lang.String name)
Get a specific DC property

Parameters:
name - name of DC property go get
Returns:
a specific DC property


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.