Rule RenameLiteralPropertyRule

Stores the value of an XML element or attribute as a literal RDF triple.

Constructor enforceLang

Enforces a fixed xml:lang. Use it if you know the language of this property, when it is not specified in the source XML, or may be specified incorrectly.

Sample use:

<ac:eu.annocultor.rules.RenameLiteralPropertyRule-enforceLang>
  <ac:srcPath rdf:datatype="ac:Path"></ac:srcPath>
  <ac:dstProperty rdf:datatype="ac:Property"> destination property </ac:dstProperty>
  <ac:dstLangCode rdf:datatype="ac:String"> 2-letter code of the xml:lang to set in the destination property, e.g. "nl"; 
    empty value keeps the original language </ac:dstLangCode>
  <ac:dstGraph rdf:datatype="ac:Graph"> destination graph </ac:dstGraph>
</ac:eu.annocultor.rules.RenameLiteralPropertyRule-enforceLang>

Constructor default

Preserves the xml:lang attribute.

Sample use:

<ac:eu.annocultor.rules.RenameLiteralPropertyRule-default>
  <ac:srcPath rdf:datatype="ac:Path"></ac:srcPath>
  <ac:dstProperty rdf:datatype="ac:Property"> destination property </ac:dstProperty>
  <ac:dstGraph rdf:datatype="ac:Graph"> destination graph </ac:dstGraph>
</ac:eu.annocultor.rules.RenameLiteralPropertyRule-default>

Constructor template

Sample use:

<ac:eu.annocultor.rules.RenameLiteralPropertyRule-template>
  <ac:dstGraph rdf:datatype="ac:Graph"></ac:dstGraph>
</ac:eu.annocultor.rules.RenameLiteralPropertyRule-template>

Constructor lang

Sample use:

<ac:eu.annocultor.rules.RenameLiteralPropertyRule-lang>
  <ac:srcPath rdf:datatype="ac:Path"></ac:srcPath>
  <ac:dstProperty rdf:datatype="ac:Property"></ac:dstProperty>
  <ac:srcPathToLang rdf:datatype="ac:Path">  </ac:srcPathToLang>
  <ac:defaultLang rdf:datatype="ac:String">  </ac:defaultLang>
  <ac:dstGraph rdf:datatype="ac:Graph"></ac:dstGraph>
</ac:eu.annocultor.rules.RenameLiteralPropertyRule-lang>