Class MetadataTagManager


  • public class MetadataTagManager
    extends Object
    Creates and reads the metadata mapping tags in the given context (subgraph).
    Author:
    burgetr
    • Constructor Detail

      • MetadataTagManager

        public MetadataTagManager​(RDFArtifactRepository repo,
                                  org.eclipse.rdf4j.model.IRI contextIri)
    • Method Detail

      • createTagsForExamples

        public Collection<MetaRefTag> createTagsForExamples​(Collection<Example> examples)
        Creates a tag for every example.
        Parameters:
        examples - a collection of examples
        Returns:
        a collection of tags containing one tag for each example
      • checkForTags

        public Collection<MetaRefTag> checkForTags​(Collection<Example> examples)
        Checks whether the context contains tags for examples. If not, the tags are created from the given examples.
        Parameters:
        examples -
        Returns:
        the tags found or created