Package com.complexible.common.rdf.rio
Class RDFObfuscator
- java.lang.Object
-
- com.complexible.common.rdf.rio.RDFObfuscator
-
public final class RDFObfuscator extends java.lang.Object implements java.util.function.Function<Statement,Statement>
This is a simple utility program to obfuscate the contents of an RDF file. The program will obfuscate all IRIs and string literals using a message digest algorithm. Bnodes and non-string typed literals are left unchanged. The obfuscation is guided by a configuration file. Configuration can specify which IRIs and string will be obfuscated by defining inclusion and exclusion filters.- Since:
- 2.0
- Version:
- 6.0
- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description RDFObfuscator()
RDFObfuscator(java.lang.String configFile)
RDFObfuscator(java.lang.String configFile, java.lang.Iterable<Namespace> theNamespaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statement
apply(Statement stmt)
Namespaces
namespaces()
java.lang.String
obfuscateQuery(java.lang.String theQuery)
java.lang.String
obfuscateRule(java.lang.String theRule)
<T extends Value>
TobfuscateValue(T value, com.complexible.common.rdf.rio.RDFObfuscator.FilterPosition pos)
-
-
-
Constructor Detail
-
RDFObfuscator
public RDFObfuscator() throws java.lang.Exception
- Throws:
java.lang.Exception
-
RDFObfuscator
public RDFObfuscator(java.lang.String configFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
RDFObfuscator
public RDFObfuscator(java.lang.String configFile, java.lang.Iterable<Namespace> theNamespaces) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
namespaces
public Namespaces namespaces()
-
obfuscateValue
public <T extends Value> T obfuscateValue(T value, com.complexible.common.rdf.rio.RDFObfuscator.FilterPosition pos)
-
obfuscateQuery
public java.lang.String obfuscateQuery(java.lang.String theQuery)
-
obfuscateRule
public java.lang.String obfuscateRule(java.lang.String theRule)
-
-