RenameLiteralPropertyRuleStores the value of an XML element or attribute as a literal RDF triple.
enforceLangEnforces 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>
defaultPreserves 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>
templateSample use:
<ac:eu.annocultor.rules.RenameLiteralPropertyRule-template> <ac:dstGraph rdf:datatype="ac:Graph"></ac:dstGraph> </ac:eu.annocultor.rules.RenameLiteralPropertyRule-template>