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
    • Method Detail

      • getCreatedDate

        public static Calendar getCreatedDate​(Iterable<org.apache.jena.rdf.model.Statement> statements)
        Gets the created date (if any) that was included in the statements.
        Parameters:
        statements - statements to consider
        Returns:
        the date that should be set for the CREATED_DATE or null if it should be untouched
      • getCreatedBy

        public static String getCreatedBy​(Iterable<org.apache.jena.rdf.model.Statement> statements)
        Gets the created by user (if any) that is included within the statements.
        Parameters:
        statements - statements to consider
        Returns:
        the date that should be set for the CREATED_BY or null if it should be untouched
      • getModifiedDate

        public static Calendar getModifiedDate​(Iterable<org.apache.jena.rdf.model.Statement> statements)
        Gets the modified date (if any) that was included within the statements.
        Parameters:
        statements - statements to consider
        Returns:
        the date that should be set for the LAST_MODIFIED_DATE or null if it should be untouched
      • getModifiedBy

        public static String getModifiedBy​(Iterable<org.apache.jena.rdf.model.Statement> statements)
        Gets the modified by user (if any) that was included within the statements.
        Parameters:
        statements - statements to consider
        Returns:
        the date that should be set for the MODIFIED_BY or null if it should be untouched