/** * Create a new instance with the types enhancer:Enhancement and * enhancer:TopicAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createTopicEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine, contentItemId); metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_TOPICANNOTATION)); return enhancement; } /**
/** * Create a new instance with the types enhancer:Enhancement and * enhancer:EntityAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createEntityEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine, contentItemId); metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_ENTITYANNOTATION)); return enhancement; } /**
/** * Create a new instance with the types enhancer:Enhancement and * enhancer:EntityAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createEntityEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine, contentItemId); metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_ENTITYANNOTATION)); return enhancement; } /**
/** * Create a new instance with the types enhancer:Enhancement and * enhancer:TopicAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createTopicEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine, contentItemId); metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_TOPICANNOTATION)); return enhancement; } /**
/** * Create a new instance with the types enhancer:Enhancement and * enhancer:TextAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createTextEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine,contentItemId); //add the Text Annotation Type metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_TEXTANNOTATION)); return enhancement; } /**
/** * Create a new instance with the types enhancer:Enhancement and * enhancer:TextAnnotation in the parsed graph along with default properties * (dc:creator, dc:created and enhancer:extracted-form) and return * the IRI of the extraction so that engines can further add. * * @param metadata the graph * @param engine the engine * @param contentItemId the id * * @return the URI of the new enhancement instance */ public static IRI createTextEnhancement(Graph metadata, EnhancementEngine engine, IRI contentItemId){ IRI enhancement = createEnhancement(metadata, engine,contentItemId); //add the Text Annotation Type metadata.add(new TripleImpl(enhancement, RDF_TYPE, ENHANCER_TEXTANNOTATION)); return enhancement; } /**