public class CODATriple extends Object
Modifier and Type | Field and Description |
---|---|
private double |
confidence |
private List<Annotation> |
listAnnotations |
private org.eclipse.rdf4j.model.Value |
object |
private String |
objectNameInGraph |
private org.eclipse.rdf4j.model.IRI |
predicate |
private String |
predicateNameInGraph |
private org.eclipse.rdf4j.model.Resource |
subject |
private String |
subjectNameInGraph |
Constructor and Description |
---|
CODATriple(org.eclipse.rdf4j.model.Resource subject,
org.eclipse.rdf4j.model.IRI predicate,
org.eclipse.rdf4j.model.Value object,
double confidence) |
CODATriple(org.eclipse.rdf4j.model.Resource subject,
org.eclipse.rdf4j.model.IRI predicate,
org.eclipse.rdf4j.model.Value object,
double confidence,
String subjectNameInGraph,
String predicateNameInGraph,
String objectNameInGraph) |
CODATriple(org.eclipse.rdf4j.model.Resource subject,
org.eclipse.rdf4j.model.IRI predicate,
org.eclipse.rdf4j.model.Value object,
List<Annotation> listAnnotations,
double confidence)
Constructor to set the annotations of the ARTTriple.
|
CODATriple(org.eclipse.rdf4j.model.Resource subject,
org.eclipse.rdf4j.model.IRI predicate,
org.eclipse.rdf4j.model.Value object,
List<Annotation> listAnnotations,
double confidence,
String subjectNameInGraph,
String predicateNameInGraph,
String objectNameInGraph) |
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation(String annotationName)
return the annotation having the given name or null if no annotation has the given name
|
double |
getConfidence()
Get the confidence value
|
List<Annotation> |
getListAnnotations() |
org.eclipse.rdf4j.model.Value |
getObject()
Get the object of the triple.
|
String |
getObjectNameInGraph() |
org.eclipse.rdf4j.model.IRI |
getPredicate()
Get the predicate of the triple
|
String |
getPredicateNameInGraph() |
org.eclipse.rdf4j.model.Resource |
getSubject()
Get the subject of the triple
|
String |
getSubjectNameInGraph() |
boolean |
hasListAnnotations() |
private org.eclipse.rdf4j.model.Resource subject
private org.eclipse.rdf4j.model.IRI predicate
private org.eclipse.rdf4j.model.Value object
private double confidence
private List<Annotation> listAnnotations
private String subjectNameInGraph
private String predicateNameInGraph
private String objectNameInGraph
public CODATriple(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Value object, double confidence)
subject
- the subject of the triplepredicate
- the predicate of the tripleobject
- the object of the tripleconfidence
- the confidence value for this triplepublic CODATriple(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Value object, double confidence, String subjectNameInGraph, String predicateNameInGraph, String objectNameInGraph)
public CODATriple(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Value object, List<Annotation> listAnnotations, double confidence)
subject
- predicate
- object
- listAnnotations
- confidence
- public CODATriple(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Value object, List<Annotation> listAnnotations, double confidence, String subjectNameInGraph, String predicateNameInGraph, String objectNameInGraph)
public org.eclipse.rdf4j.model.Resource getSubject()
public org.eclipse.rdf4j.model.IRI getPredicate()
public org.eclipse.rdf4j.model.Value getObject()
public double getConfidence()
public List<Annotation> getListAnnotations()
public Annotation getAnnotation(String annotationName)
annotationName
- public boolean hasListAnnotations()
public String getSubjectNameInGraph() throws ValueNotPresentDueToConfigurationException
public String getPredicateNameInGraph() throws ValueNotPresentDueToConfigurationException
public String getObjectNameInGraph() throws ValueNotPresentDueToConfigurationException
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.