com.ontotext.ordi.wsmo4rdf.impl
Class WSMLConnectionAdapterImpl

java.lang.Object
  extended by com.ontotext.ordi.wsmo4rdf.impl.WSMLConnectionAdapterImpl

public class WSMLConnectionAdapterImpl
extends Object

This class is responsible to manage all transformation task between triples (composed by RDF types) and triples (composed by WSML types).


Nested Class Summary
 class WSMLConnectionAdapterImpl.IteratorAdapter
           
 class WSMLConnectionAdapterImpl.WSMLTriple
           
 
Field Summary
protected  TConnection conection
           
 
Constructor Summary
WSMLConnectionAdapterImpl(TConnection connection)
           
 
Method Summary
 TConnection getConnection()
           
 boolean hasStatement(Identifier subj, IRI pred, Object obj)
           
 boolean hasStatement(Identifier subj, IRI pred, Object obj, IRI ng, IRI ts)
           
 int removeStatement(Identifier subj, IRI pred, Object obj, IRI namedGraph)
           
 WSMLConnectionAdapterImpl.IteratorAdapter search(Identifier subj, IRI pred, Object obj)
           
 WSMLConnectionAdapterImpl.IteratorAdapter search(Identifier subj, IRI pred, Object obj, IRI ng, IRI ts)
           
<T> T
searchForObject(Identifier subject, IRI predicate, Class<T> assignableTo)
          Retrieve the first object by specified subject and predicates, which is assignable to a specified class.
 Identifier searchForObjectByJoin(Identifier subject, IRI predicate, IRI predicate2, Identifier object)
          Retrieve the first ?result to bind the pattern .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conection

protected final TConnection conection
Constructor Detail

WSMLConnectionAdapterImpl

public WSMLConnectionAdapterImpl(TConnection connection)
Method Detail

getConnection

public TConnection getConnection()

removeStatement

public int removeStatement(Identifier subj,
                           IRI pred,
                           Object obj,
                           IRI namedGraph)

hasStatement

public boolean hasStatement(Identifier subj,
                            IRI pred,
                            Object obj)

hasStatement

public boolean hasStatement(Identifier subj,
                            IRI pred,
                            Object obj,
                            IRI ng,
                            IRI ts)

search

public WSMLConnectionAdapterImpl.IteratorAdapter search(Identifier subj,
                                                        IRI pred,
                                                        Object obj)

search

public WSMLConnectionAdapterImpl.IteratorAdapter search(Identifier subj,
                                                        IRI pred,
                                                        Object obj,
                                                        IRI ng,
                                                        IRI ts)

searchForObject

public <T> T searchForObject(Identifier subject,
                             IRI predicate,
                             Class<T> assignableTo)
Retrieve the first object by specified subject and predicates, which is assignable to a specified class. If an argument is null then it will match all values.

Parameters:
subject - to filter or null for wildcard.
predicate - to filter or null for wildcard.
assignableTo - verify if the result may be casted to the specified type
Returns:
The first object of a triple to match the subject and predicate.

searchForObjectByJoin

public Identifier searchForObjectByJoin(Identifier subject,
                                        IRI predicate,
                                        IRI predicate2,
                                        Identifier object)
Retrieve the first ?result to bind the pattern . This is regarded as a primitive join operation between triples.

Parameters:
subject - the value of ?s, may be null for wildcard.
predicate - the value of ?p1, may be null for wildcard.
predicate2 - the value of ?p2, may be null for wildcard.
object - the value of ?o, may be null for wildcard.
Returns:
the value of ?return or null if no match is possible


Copyright © 2008. All Rights Reserved.