Package org.fcrepo.migration.foxml
Class NamespacePrefixMapper
- java.lang.Object
-
- org.fcrepo.migration.foxml.NamespacePrefixMapper
-
public class NamespacePrefixMapper extends Object
Utility bean to set namespace prefixes in a SPARQL update.- Author:
- danny
-
-
Constructor Summary
Constructors Constructor Description NamespacePrefixMapper(File namespaceFile)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetPrefixes(org.apache.jena.update.UpdateRequest updateRequest)Declares all the namespace prefixes provided in the properties file.
-
-
-
Constructor Detail
-
NamespacePrefixMapper
public NamespacePrefixMapper(File namespaceFile) throws IOException
Constructor.- Parameters:
namespaceFile- Namespace properties file that gets injected in via Spring- Throws:
IOException- Issues loading the properties file.
-
-
Method Detail
-
setPrefixes
public void setPrefixes(org.apache.jena.update.UpdateRequest updateRequest)
Declares all the namespace prefixes provided in the properties file.- Parameters:
updateRequest- SPARQL update query that needs declared prefixes
-
-