[TYPO3-semantic] Brain storming - Interfaces
Fabien Udriot
fudriot at omic.ch
Mon May 30 09:53:54 CEST 2011
Hi,
This post is related to the previous one about storing nodes within a hierarchy.
I have put bellow a first draft of interfaces that I reckon being useful. Perhaps, we can also get
inspired by other framework. Any pointer may be welcomed.
Interface for QUERYING
======================
- Array of Node $objects : findObjects (Node $subject, String $predicate)
- Array of Node $subjects : findSubjects (Node $object, String $predicate)
- Array of String $predicate : findPredicates (Node $subject, Node $object)
Interface FOR STORING
=====================
- Triple addTriple (Node $subject, Node $object, String $predicate)
- Triple removeTriple (Node $subject, Node $object, String $predicate)
Pending question
================
- Convenience Interface may be useful:
Tripple updateTripple (Node $subject, Node $object, String $oldPredicate, String $oldPredicate)
- How can I sort an array of nodes? Use Case: sort by alphanumeric a bunch of concepts
- other useful interfaces such as addCollection(), addSequence() found here:
http://jrdf.sourceforge.net/0.5.4/doc/javadoc/org/jrdf/graph/TripleFactory.html
Fabien
More information about the TYPO3-team-semantic
mailing list