|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
Method Detail |
public Person findPrimaryPerson()
findPrimaryPerson(String)
public Person findPrimaryPerson(java.lang.String base)
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.
base
- the URI of the document
public java.util.List findAllPeople()
Produces a list of Person objects, one for every foaf:Person in the graph, regardless of relationship or origin.
public java.util.List findPersonByProperty(java.lang.String propertyURI, java.lang.String value)
propertyURI
- the URI of the propertyvalue
- the value of the property to match on
public java.util.List findPersonWithProperty(java.lang.String propertyURI)
propertyURI
- the URI of the property
public void smush()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |