org.openanzo.atom.jastor.atomowl
Interface Content

All Superinterfaces:
CoreThing, GraphThing, Representation
All Known Subinterfaces:
HTML, PlainText, TextContent, XHTML, XML
All Known Implementing Classes:
ContentImpl, HTMLImpl, PlainTextImpl, TextContentImpl, XHTMLImpl, XMLImpl

public interface Content
extends Representation, GraphThing

Interface for Content Class@en ontology class
Use the org.openanzo.atom.jastor.atomowl.Factory to create instances of this interface.

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#Content)


RDF Schema Standard Properties
label : Content Class@en
comment : see 4.1.3 in rfc 4287 One way to think of this is as a class that represents what one can get from an HTTP connection. It has a body, and a number of headers, info such as mime-type, content-lenght, etc... .@en



Field Summary
static org.openrdf.model.URI bodyProperty
          The Jena Property for body
static org.openrdf.model.URI contentProperty
          The Jena Property for content
static org.openrdf.model.URI emailProperty
          The Jena Property for email
static org.openrdf.model.URI langProperty
          The Jena Property for lang
static org.openrdf.model.URI lengthProperty
          The Jena Property for length
static org.openrdf.model.URI representationOfProperty
          The Jena Property for representationOf
static org.openrdf.model.URI representationProperty
          The Jena Property for representation
static org.openrdf.model.URI srcProperty
          The Jena Property for src
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
static org.openrdf.model.URI typeProperty
          The Jena Property for type
 
Method Summary
 void addBody(org.openrdf.model.Literal body)
          Add a 'body' property value
 GraphThing addEmail()
          Adds an anonymous value for the 'email' property
 void addEmail(GraphThing email)
          Adds a value for the 'email' property
 GraphThing addEmail(org.openrdf.model.Resource resource)
          Adds a value for the 'email' property.
 InformationResource addSrc()
          Adds an anonymous value for the 'src' property
 void addSrc(InformationResource src)
          Adds a value for the 'src' property
 InformationResource addSrc(org.openrdf.model.Resource resource)
          Adds a value for the 'src' property.
 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getBody()
          Iterates through the 'body' property values.
 Content getContent()
          Gets the 'content' property value
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getEmail()
          Get an Iterator the 'email' property values.
 java.lang.String getLang()
          Gets the 'lang' property value
 java.lang.Integer getLength()
          Gets the 'length' property value
 info.aduna.collections.iterators.CloseableIterator<InformationResource> getSrc()
          Get an Iterator the 'src' property values.
 java.lang.String getType()
          Gets the 'type' property value
 void removeBody(org.openrdf.model.Literal body)
          Remove a 'body' property value.
 void removeEmail(GraphThing email)
          Removes a value for the 'email' property.
 void removeSrc(InformationResource src)
          Removes a value for the 'src' property.
 Content setContent()
          Sets the 'content' property value to an anonymous node
 void setContent(Content content)
          Sets the 'content' property value
 Content setContent(org.openrdf.model.Resource resource)
          Sets the 'content' property value to the given resource, and add's rdf:type properties.
 void setLang(java.lang.String lang)
          Sets the 'lang' property value
 void setLength(java.lang.Integer length)
          Sets the 'length' property value
 void setType(java.lang.String type)
          Sets the 'type' property value
 
Methods inherited from interface org.openanzo.atom.jastor.webarch.Representation
addRepresentation, addRepresentation, addRepresentation, addRepresentationOf, addRepresentationOf, addRepresentationOf, getRepresentation, getRepresentationOf, removeRepresentation, removeRepresentationOf
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


lengthProperty

static final org.openrdf.model.URI lengthProperty
The Jena Property for length

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#length)



RDF Schema Standard Properties
label : length in bytes@en
comment : see 4.2.7.6 of rfc 4287. The length in bytes of the representation.@en


typeProperty

static final org.openrdf.model.URI typeProperty
The Jena Property for type

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#type)



RDF Schema Standard Properties
label : mime type@en
comment : see 4.2.7.3 of rfc 4287. The mime type of the representation.@en


bodyProperty

static final org.openrdf.model.URI bodyProperty
The Jena Property for body

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#body)



RDF Schema Standard Properties
label : body relation
comment : the body of the content.@en


srcProperty

static final org.openrdf.model.URI srcProperty
The Jena Property for src

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#src)



RDF Schema Standard Properties
label : source@en
comment : a source of the representation@en


langProperty

static final org.openrdf.model.URI langProperty
The Jena Property for lang

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#lang)



RDF Schema Standard Properties
label : language@en
comment : see 4.2.7.4 of rfc 4287. The language of the representation.@en


representationOfProperty

static final org.openrdf.model.URI representationOfProperty
The Jena Property for representationOf

(URI: http://sw.nokia.com/WebArch-1/representationOf)



emailProperty

static final org.openrdf.model.URI emailProperty
The Jena Property for email

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#email)



RDF Schema Standard Properties
label : email address@en
comment : see 3.2.3 of rfc 4287. A mailbox of the Person@en


representationProperty

static final org.openrdf.model.URI representationProperty
The Jena Property for representation

(URI: http://sw.nokia.com/WebArch-1/representation)



contentProperty

static final org.openrdf.model.URI contentProperty
The Jena Property for content

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#content)



RDF Schema Standard Properties
label : content@en
comment : See 4.1.3 of rfc 4287 spec. The content of an Entry, a Link or any of the relation types that are the object of :rel properties@en

Method Detail

getLength

java.lang.Integer getLength()
                            throws JastorException
Gets the 'length' property value

Returns:
Integer
Throws:
JastorException
See Also:
lengthProperty

setLength

void setLength(java.lang.Integer length)
               throws JastorException
Sets the 'length' property value

Parameters:
{@link - java.lang.Integer}
Throws:
JastorException
See Also:
lengthProperty

getType

java.lang.String getType()
                         throws JastorException
Gets the 'type' property value

Returns:
String
Throws:
JastorException
See Also:
typeProperty

setType

void setType(java.lang.String type)
             throws JastorException
Sets the 'type' property value

Parameters:
{@link - java.lang.String}
Throws:
JastorException
See Also:
typeProperty

getBody

info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getBody()
                                                                                      throws JastorException
Iterates through the 'body' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of Literal
Throws:
JastorException
See Also:
bodyProperty

addBody

void addBody(org.openrdf.model.Literal body)
             throws JastorException
Add a 'body' property value

Parameters:
{@link - org.openrdf.model.Literal}, the value to add
Throws:
JastorException
See Also:
bodyProperty

removeBody

void removeBody(org.openrdf.model.Literal body)
                throws JastorException
Remove a 'body' property value. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
{@link - org.openrdf.model.Literal}, the value to remove
Throws:
JastorException
See Also:
bodyProperty

getSrc

info.aduna.collections.iterators.CloseableIterator<InformationResource> getSrc()
                                                                               throws JastorException
Get an Iterator the 'src' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of InformationResource
Throws:
JastorException
See Also:
srcProperty

addSrc

void addSrc(InformationResource src)
            throws JastorException
Adds a value for the 'src' property

Parameters:
The - InformationResource to add
Throws:
JastorException
See Also:
srcProperty

addSrc

InformationResource addSrc()
                           throws JastorException
Adds an anonymous value for the 'src' property

Returns:
The anoymous InformationResource created
Throws:
JastorException
See Also:
srcProperty

addSrc

InformationResource addSrc(org.openrdf.model.Resource resource)
                           throws JastorException
Adds a value for the 'src' property. This method is equivalent constructing a new instance of InformationResource with the factory and calling addSrc(org.openanzo.atom.jastor.webarch.InformationResource src) The resource argument have rdf:type http://sw.nokia.com/WebArch-1/InformationResource. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
The - om.hp.hpl.jena.rdf.model.Resource to add
Throws:
JastorException
See Also:
srcProperty

removeSrc

void removeSrc(InformationResource src)
               throws JastorException
Removes a value for the 'src' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
The - InformationResource to remove
Throws:
JastorException
See Also:
srcProperty

getLang

java.lang.String getLang()
                         throws JastorException
Gets the 'lang' property value

Returns:
String
Throws:
JastorException
See Also:
langProperty

setLang

void setLang(java.lang.String lang)
             throws JastorException
Sets the 'lang' property value

Parameters:
{@link - java.lang.String}
Throws:
JastorException
See Also:
langProperty

getEmail

info.aduna.collections.iterators.CloseableIterator<GraphThing> getEmail()
                                                                        throws JastorException
Get an Iterator the 'email' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
emailProperty

addEmail

void addEmail(GraphThing email)
              throws JastorException
Adds a value for the 'email' property

Parameters:
The - GraphThing to add
Throws:
JastorException
See Also:
emailProperty

addEmail

GraphThing addEmail()
                    throws JastorException
Adds an anonymous value for the 'email' property

Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
emailProperty

addEmail

GraphThing addEmail(org.openrdf.model.Resource resource)
                    throws JastorException
Adds a value for the 'email' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addEmail(org.openanzo.jastor.GraphThing email) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
The - om.hp.hpl.jena.rdf.model.Resource to add
Throws:
JastorException
See Also:
emailProperty

removeEmail

void removeEmail(GraphThing email)
                 throws JastorException
Removes a value for the 'email' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
The - GraphThing to remove
Throws:
JastorException
See Also:
emailProperty

getContent

Content getContent()
                   throws JastorException
Gets the 'content' property value

Returns:
Content
Throws:
JastorException
See Also:
contentProperty

setContent

void setContent(Content content)
                throws JastorException
Sets the 'content' property value

Parameters:
{@link - org.openanzo.atom.jastor.atomowl.Content}
Throws:
JastorException
See Also:
contentProperty

setContent

Content setContent()
                   throws JastorException
Sets the 'content' property value to an anonymous node

Returns:
Content, the created value
Throws:
JastorException
See Also:
contentProperty

setContent

Content setContent(org.openrdf.model.Resource resource)
                   throws JastorException
Sets the 'content' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Content with the factory. and calling setContent(org.openanzo.atom.jastor.atomowl.Content content) The resource argument have rdf:type http://bblfish.net/work/atom-owl/2006-06-06/#Content. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
{@link - com.hp.hpl.jena.rdf.model.Resource} must not be be null.
Returns:
Content, the newly created value
Throws:
JastorException
See Also:
contentProperty


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