org.weblab_project.core.helper.impl
Interface RDFRulesSelector

All Known Implementing Classes:
ComplexTripleSelector

public interface RDFRulesSelector

Selection functions for triples retrieval and WebLab model association.


Method Summary
 void addPORule(java.lang.String predicat, java.lang.String object)
          Add a filter on an association predicat/object
 void addSORule(java.lang.String subject, java.lang.String object)
          Add a filter on an association subject/object
 void addSPRule(java.lang.String subject, java.lang.String predicat)
          Add a filter on an association subject/predicat
 java.util.List<WTriple> findIn(org.weblab_project.core.model.Resource resource)
          Find Triplets Subject, Predicate, Object) in the resource according to the rules already set in the Selector.
 void limitToFirstLevelAnnotation(boolean limit)
          If limit is true, then all the searches made with this RDFSelector will stop after the first level of annotation.
 

Method Detail

findIn

java.util.List<WTriple> findIn(org.weblab_project.core.model.Resource resource)
Find Triplets Subject, Predicate, Object) in the resource according to the rules already set in the Selector.

Parameters:
resource - a resource
Returns:
a list of triples

addSPRule

void addSPRule(java.lang.String subject,
               java.lang.String predicat)
Add a filter on an association subject/predicat

Parameters:
subject -
predicat -

addSORule

void addSORule(java.lang.String subject,
               java.lang.String object)
Add a filter on an association subject/object

Parameters:
subject -
object -

addPORule

void addPORule(java.lang.String predicat,
               java.lang.String object)
Add a filter on an association predicat/object

Parameters:
predicat -
object -

limitToFirstLevelAnnotation

void limitToFirstLevelAnnotation(boolean limit)
If limit is true, then all the searches made with this RDFSelector will stop after the first level of annotation.
Else the search will recursively browse all the searched Resource structure. By default limit is false.

Parameters:
limit - if true, it will only search annotation on resource else it will search until the leaf annotations


Copyright © 2004-2010. All Rights Reserved.