Class XSemanticExtension

  • All Implemented Interfaces:
    java.io.Serializable

    public class XSemanticExtension
    extends XExtension
    This extension adds semantic attributes to event log objects. These semantic attributes reference concepts, which are represented by event log objects, as unique URIs.
    Author:
    Christian W. Guenther (christian@deckfour.org)
    See Also:
    Serialized Form
    • Field Detail

      • EXTENSION_URI

        public static final java.net.URI EXTENSION_URI
        Unique URI of this extension.
      • KEY_MODELREFERENCE

        public static final java.lang.String KEY_MODELREFERENCE
        Key for the model references attribute.
        See Also:
        Constant Field Values
      • ATTR_MODELREFERENCE

        public static XAttributeLiteral ATTR_MODELREFERENCE
        Model references attribute prototype.
    • Method Detail

      • instance

        public static XSemanticExtension instance()
        Provides access to the singleton instance.
        Returns:
        Singleton extension.
      • extractModelReferences

        public java.util.List<java.lang.String> extractModelReferences​(XAttributable target)
        Retrieves the list of model references which describe a log element (archive, log, trace, event, attribute).
        Parameters:
        target - Any log element (i.e., archive, log, trace, event, or attribute) to be queried.
        Returns:
        The list of model references, as a list of strings, referred to by this element.
      • extractModelReferenceURIs

        public java.util.List<java.net.URI> extractModelReferenceURIs​(XAttributable target)
        Retrieves the list of model reference URIs which describe a log element (archive, log, trace, event, attribute).
        Parameters:
        target - Any log element (i.e., archive, log, trace, event, or attribute) to be queried.
        Returns:
        The list of model references, as a list of URIs, referred to by this element.
      • assignModelReferences

        public void assignModelReferences​(XAttributable target,
                                          java.util.List<java.lang.String> modelReferences)
        Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.
        Parameters:
        target - Any log element (i.e., archive, log, trace, event, or attribute) to be assigned references to.
        modelReferences - The list of model references, as a list of strings, referred to by this element.
      • assignModelReferenceUris

        public void assignModelReferenceUris​(XAttributable target,
                                             java.util.List<java.net.URI> modelReferenceURIs)
        Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.
        Parameters:
        target - Any log element (i.e., archive, log, trace, event, or attribute) to be assigned references to.
        modelReferenceURIs - The list of model references, as a list of URIs, referred to by this element.