Class RDFObfuscator

  • All Implemented Interfaces:
    java.util.function.Function<Statement,​Statement>

    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 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

      • 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)