de.unidu.is.annotation.rework.ontology.classes.OntologyObjects
Class DocumentIndividual

java.lang.Object
  extended byde.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual
      extended byde.unidu.is.annotation.rework.ontology.classes.OntologyObjects.DocumentIndividual

public class DocumentIndividual
extends OntologyIndividual

DocumentIndividual.java Represents an document individual in a Jena OntModel

Author:
Marc Lechtenfeld

Field Summary
static java.lang.String DOCUMENT_CLASS
          Name of the ontology class for documents
 java.lang.String DOCUMENT_SUFFIX
          Document suffix
static java.lang.String TEXT_PROPERTY
          Name of the ontology property, which stores the text of a document
 
Fields inherited from class de.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual
ANNOTATIONS_PROPERTY, LINK_PROPERTY, NAMESPACE, ontIndividual, ontModel, TYPE_URI
 
Constructor Summary
DocumentIndividual()
           
 
Method Summary
 void create(com.hp.hpl.jena.ontology.OntModel model, java.lang.String individualUri)
          Creates a new instance
 void createClone(com.hp.hpl.jena.ontology.OntModel model, DocumentIndividual documentIndividual)
          Creates a new document with the same properties as the specified individual
 java.lang.String getText()
          Returns the text of the document
 void setText(java.lang.String text)
          Sets the text of the document
 
Methods inherited from class de.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual
addPropertyValue, addTypeValue, clearProperties, create, createClassClone, createClone, getIndividualName, getLocalName, getProperty, getPropertyValue, getPropertyValues, getTypes, getUri, init, isExisting, load, remove, takeProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_CLASS

public static final java.lang.String DOCUMENT_CLASS
Name of the ontology class for documents

See Also:
Constant Field Values

TEXT_PROPERTY

public static final java.lang.String TEXT_PROPERTY
Name of the ontology property, which stores the text of a document

See Also:
Constant Field Values

DOCUMENT_SUFFIX

public final java.lang.String DOCUMENT_SUFFIX
Document suffix

See Also:
Constant Field Values
Constructor Detail

DocumentIndividual

public DocumentIndividual()
Method Detail

create

public void create(com.hp.hpl.jena.ontology.OntModel model,
                   java.lang.String individualUri)
Creates a new instance

Overrides:
create in class OntologyIndividual
Parameters:
model - Model
individualUri - URI of the new individual

createClone

public void createClone(com.hp.hpl.jena.ontology.OntModel model,
                        DocumentIndividual documentIndividual)
Creates a new document with the same properties as the specified individual

Parameters:
model - Model
documentIndividual - Document individual to copy

setText

public void setText(java.lang.String text)
Sets the text of the document

Parameters:
text - Text of the document

getText

public java.lang.String getText()
Returns the text of the document

Returns:
Text of the document