Class RelaxedPropertiesHelper


  • public class RelaxedPropertiesHelper
    extends Object
    Some server managed triples can have the prohibition on user-management overridden. While the server still updates them implicitly, it may be possible in some cases for a user request to override them.
    Author:
    Mike Durbin, whikloj
    • Method Detail

      • getCreatedDate

        public static Calendar getCreatedDate​(org.apache.jena.rdf.model.Resource resource)
        Gets the created date (if any) that was included in the statements.
        Parameters:
        resource - the resource we are looking for properties of
        Returns:
        the date that should be set for the CREATED_DATE or null if it should be untouched
      • getCreatedBy

        public static String getCreatedBy​(org.apache.jena.rdf.model.Resource resource)
        Gets the created by user (if any) that is included within the statements.
        Parameters:
        resource - the resource we are looking for properties of
        Returns:
        the string that should be set for the CREATED_BY or null if it should be untouched
      • getModifiedDate

        public static Calendar getModifiedDate​(org.apache.jena.rdf.model.Resource resource)
        Gets the modified date (if any) that was included within the statements.
        Parameters:
        resource - the resource we are looking for properties of
        Returns:
        the date that should be set for the LAST_MODIFIED_DATE or null if it should be untouched
      • getModifiedBy

        public static String getModifiedBy​(org.apache.jena.rdf.model.Resource resource)
        Gets the modified by user (if any) that was included within the statements.
        Parameters:
        resource - the resource we are looking for properties of
        Returns:
        the string that should be set for the MODIFIED_BY or null if it should be untouched
      • checkTripleForDisallowed

        public static void checkTripleForDisallowed​(org.apache.jena.graph.Triple triple)
        Several tests for invalid or disallowed RDF statements.
        Parameters:
        triple - the triple to check.