org.weblab_project.core.helper.impl
Interface IPredicateValuePairs

All Known Implementing Classes:
AdvancedLinkedHashMap

public interface IPredicateValuePairs

THis class gives basic tools to retrieve Predicate, Value pairs and to write statements from a WTripleMap

Author:
Arnaud

Method Summary
 java.util.Set<java.lang.String> allPredicates()
          Returns all predicates
 java.util.Collection<WTriple> getStatements()
          Returns the list of WTriples
 java.lang.Object getValue(java.lang.String predicate)
          Returns the object of the predicate.
 void writeStatement(java.lang.String predicate, java.lang.String object)
          Write a statement.
 void writeStatements(java.lang.String[] predicates, java.lang.String[] objects, org.weblab_project.core.model.PieceOfKnowledge pok)
          Write several statements at the same time.
 

Method Detail

getValue

java.lang.Object getValue(java.lang.String predicate)
Returns the object of the predicate.

Parameters:
predicate - a predicate
Returns:
the object

writeStatement

void writeStatement(java.lang.String predicate,
                    java.lang.String object)
                    throws org.weblab_project.core.exception.WebLabCheckedException
Write a statement.

Parameters:
predicate - a predicate
object - an object
Throws:
org.weblab_project.core.exception.WebLabCheckedException

writeStatements

void writeStatements(java.lang.String[] predicates,
                     java.lang.String[] objects,
                     org.weblab_project.core.model.PieceOfKnowledge pok)
                     throws org.weblab_project.core.exception.WebLabCheckedException
Write several statements at the same time.

Parameters:
predicates - an array of predicates
objects - an array of objects
pok - a piece of knowledge
Throws:
org.weblab_project.core.exception.WebLabCheckedException

allPredicates

java.util.Set<java.lang.String> allPredicates()
Returns all predicates

Returns:
all predicates

getStatements

java.util.Collection<WTriple> getStatements()
Returns the list of WTriples

Returns:
the list of WTriples


Copyright © 2004-2010. All Rights Reserved.