|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ldodds.foaf.jena.FOAFGraphImpl
Constructor Summary | |
FOAFGraphImpl(Model model)
|
Method Summary | |
java.util.List |
findAllPeople()
List all people mentioned in this graph. |
java.util.List |
findPersonByProperty(java.lang.String propertyURI,
java.lang.String value)
Find people by a particular FOAF property |
java.util.List |
findPersonWithProperty(java.lang.String propertyURI)
Find people that have a particular FOAF property |
Person |
findPrimaryPerson()
Find the primary person in the FOAFGraph. |
Person |
findPrimaryPerson(java.lang.String base)
Finds the primary person in the FOAFGraph. |
void |
smush()
Smush this graph to de-duplicate the data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FOAFGraphImpl(Model model)
Method Detail |
public void smush()
FOAFGraph
smush
in interface FOAFGraph
FOAFGraph.smush()
public java.util.List findAllPeople()
FOAFGraph
Produces a list of Person objects, one for every foaf:Person in the graph, regardless of relationship or origin.
findAllPeople
in interface FOAFGraph
FOAFGraph.findAllPeople()
public Person findPrimaryPerson(java.lang.String base)
FOAFGraph
Find the primary person associated with a FOAF document from a specific URI. The algorithm first attempts to see whether the primary person is explicitly labelled (i.e. foaf:primaryTopic of a foaf:PersonalProfileDocument). Otherwise it looks for the author (foaf:maker, then dc:creator) of that document.
findPrimaryPerson
in interface FOAFGraph
base
- the URI of the document
FOAFGraph.findPrimaryPerson(String)
public Person findPrimaryPerson()
FOAFGraph
findPrimaryPerson
in interface FOAFGraph
FOAFGraph.findPrimaryPerson()
public java.util.List findPersonWithProperty(java.lang.String propertyURI)
FOAFGraph
findPersonWithProperty
in interface FOAFGraph
propertyURI
- the URI of the property
FOAFGraph.findPersonWithProperty(java.lang.String)
public java.util.List findPersonByProperty(java.lang.String propertyURI, java.lang.String value)
FOAFGraph
findPersonByProperty
in interface FOAFGraph
propertyURI
- the URI of the propertyvalue
- the value of the property to match on
FOAFGraph.findPersonByProperty(java.lang.String, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |