|
IMSEVimse 1.0 Draft |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--se.kth.cid.metadata.rdf.RDFLangStringHandler
LOM-LangString extraction utilities (from a RDF-Model).
A LangString contains an oroginal string in a specified language and a set of translations.
This class allows you to
Method Summary | |
static String |
excavateValue(org.w3c.rdf.model.RDFNode node,
org.w3c.rdf.model.Model model,
int counter)
This function excavates the value of a resource via a traversion of possible several resources linked together via the rdf:value property until a literal is found. It can be thought of as a part of the dumbdown algorithm as defined by Dublin Core. |
static MetaData.LangStringType |
extractKnownLangString(org.w3c.rdf.model.Resource langstring,
org.w3c.rdf.model.Model model)
Extracs original string with possibly one or several translations. |
static MetaData.LangStringType[] |
extractLangStrings(org.w3c.rdf.model.Model langstrings,
org.w3c.rdf.model.Model model)
|
static MetaData.LangString |
extractLangStringTranslation(org.w3c.rdf.model.Model translationModel,
org.w3c.rdf.model.Model model)
|
static MetaData.LangStringType |
extractPossibleLangString(org.w3c.rdf.model.RDFNode node,
org.w3c.rdf.model.Model model)
Extracts a LangString if there is any. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MetaData.LangStringType[] extractLangStrings(org.w3c.rdf.model.Model langstrings, org.w3c.rdf.model.Model model) throws org.w3c.rdf.model.ModelException
public static MetaData.LangStringType extractPossibleLangString(org.w3c.rdf.model.RDFNode node, org.w3c.rdf.model.Model model) throws org.w3c.rdf.model.ModelException
#dumbDownTranslation
,
extractKnownLangString(org.w3c.rdf.model.Resource, org.w3c.rdf.model.Model)
public static MetaData.LangStringType extractKnownLangString(org.w3c.rdf.model.Resource langstring, org.w3c.rdf.model.Model model) throws org.w3c.rdf.model.ModelException
extractLangStringTranslation(org.w3c.rdf.model.Model, org.w3c.rdf.model.Model)
public static MetaData.LangString extractLangStringTranslation(org.w3c.rdf.model.Model translationModel, org.w3c.rdf.model.Model model) throws org.w3c.rdf.model.ModelException
public static String excavateValue(org.w3c.rdf.model.RDFNode node, org.w3c.rdf.model.Model model, int counter) throws org.w3c.rdf.model.ModelException
node
- the starting point, can be a literal (done) or a resource search value for.model
- the model to search statements in.count
- the maximum number of traversions to be done before the algorithm aborts (avoids loops)
|
IMSEVimse 1.0 Draft |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |