org.openanzo.rdfs
Interface List

All Superinterfaces:
_Resource, CoreThing, GraphThing
All Known Implementing Classes:
ListImpl

public interface List
extends _Resource, GraphThing

Interface for List ontology class
Use the org.openanzo.rdfs.RDFSFactory to create instances of this interface.

(URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#List)


RDF Schema Standard Properties
label : List
comment : The class of RDF Lists.



Field Summary
static org.openrdf.model.URI firstProperty
          The Anzo Property for first
static org.openrdf.model.URI restProperty
          The Anzo Property for rest
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
Fields inherited from interface org.openanzo.rdfs._Resource
commentProperty, isDefinedByProperty, labelProperty, memberProperty, seeAlsoProperty, typeProperty, valueProperty
 
Method Summary
 void addFirst(_Resource first)
          Adds a value for the 'first' property
 _Resource addFirst()
          Adds an anonymous value for the 'first' property
 _Resource addFirst(org.openrdf.model.Resource resource)
          Adds a value for the 'first' property.
 List addRest()
          Adds an anonymous value for the 'rest' property
 void addRest(List rest)
          Adds a value for the 'rest' property
 List addRest(org.openrdf.model.Resource resource)
          Adds a value for the 'rest' property.
 info.aduna.collections.iterators.CloseableIterator<_Resource> getFirst()
          Get an Iterator the 'first' property values.
 info.aduna.collections.iterators.CloseableIterator<List> getRest()
          Get an Iterator the 'rest' property values.
 void removeFirst(_Resource first)
          Removes a value for the 'first' property.
 void removeFirst(org.openrdf.model.Resource first)
          Remove a 'first' property value.
 void removeRest(List rest)
          Removes a value for the 'rest' property.
 void removeRest(org.openrdf.model.Resource rest)
          Remove a 'rest' property value.
 
Methods inherited from interface org.openanzo.rdfs._Resource
addComment, addIsDefinedBy, addIsDefinedBy, addIsDefinedBy, addLabel, addMember, addMember, addMember, addSeeAlso, addSeeAlso, addSeeAlso, addType, addType, addType, addValue, addValue, addValue, getComment, getIsDefinedBy, getLabel, getMember, getSeeAlso, getType, getValue, removeComment, removeIsDefinedBy, removeIsDefinedBy, removeLabel, removeMember, removeMember, removeSeeAlso, removeSeeAlso, removeType, removeType, removeValue, removeValue
 
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


firstProperty

static final org.openrdf.model.URI firstProperty
The Anzo Property for first

(URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#first)



RDF Schema Standard Properties
label : first
comment : The first item in the subject RDF list.


restProperty

static final org.openrdf.model.URI restProperty
The Anzo Property for rest

(URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#rest)



RDF Schema Standard Properties
label : rest
comment : The rest of the subject RDF list after the first item.

Method Detail

getFirst

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

Returns:
Iterator of _Resource
Throws:
JastorException
See Also:
firstProperty

addFirst

void addFirst(_Resource first)
              throws JastorException
Adds a value for the 'first' property

Parameters:
first - The _Resource to add
Throws:
JastorException
See Also:
firstProperty

addFirst

_Resource addFirst()
                   throws JastorException
Adds an anonymous value for the 'first' property

Returns:
The anoymous _Resource created
Throws:
JastorException
See Also:
firstProperty

addFirst

_Resource addFirst(org.openrdf.model.Resource resource)
                   throws JastorException
Adds a value for the 'first' property. This method is equivalent constructing a new instance of _Resource with the factory and calling addFirst(org.openanzo.rdfs._Resource first) 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:
resource - The Resource to add
Returns:
The org.openanzo.rdfs._Resource created
Throws:
JastorException
See Also:
firstProperty

removeFirst

void removeFirst(_Resource first)
                 throws JastorException
Removes a value for the 'first' 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:
first - The _Resource to remove
Throws:
JastorException
See Also:
firstProperty

removeFirst

void removeFirst(org.openrdf.model.Resource first)
                 throws JastorException
Remove a 'first' 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:
first - _Resource, the value to remove
Throws:
JastorException
See Also:
firstProperty

getRest

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

Returns:
Iterator of List
Throws:
JastorException
See Also:
restProperty

addRest

void addRest(List rest)
             throws JastorException
Adds a value for the 'rest' property

Parameters:
rest - The List to add
Throws:
JastorException
See Also:
restProperty

addRest

List addRest()
             throws JastorException
Adds an anonymous value for the 'rest' property

Returns:
The anoymous List created
Throws:
JastorException
See Also:
restProperty

addRest

List addRest(org.openrdf.model.Resource resource)
             throws JastorException
Adds a value for the 'rest' property. This method is equivalent constructing a new instance of List with the factory and calling addRest(org.openanzo.rdfs.List rest) The resource argument have rdf:type http://www.w3.org/1999/02/22-rdf-syntax-ns#List. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs.List created
Throws:
JastorException
See Also:
restProperty

removeRest

void removeRest(List rest)
                throws JastorException
Removes a value for the 'rest' 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:
rest - The List to remove
Throws:
JastorException
See Also:
restProperty

removeRest

void removeRest(org.openrdf.model.Resource rest)
                throws JastorException
Remove a 'rest' 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:
rest - List, the value to remove
Throws:
JastorException
See Also:
restProperty


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