com.github.anno4j.model.impl.ResourceObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anno4j-core Show documentation
Show all versions of anno4j-core Show documentation
Read and write API for W3C Web Annotation Data Model (http://www.w3.org/TR/annotation-model/) and W3C Open Annotation Data Model (http://www.openannotation.org/spec/core/)
package com.github.anno4j.model.impl;
import com.github.anno4j.model.namespaces.RDFS;
import org.openrdf.annotations.Iri;
import org.openrdf.model.Resource;
import org.openrdf.repository.object.RDFObject;
import org.openrdf.rio.RDFFormat;
/**
* Class to implement RDF in order to create a baseline for every object that we use in Anno4j.
*/
@Iri(RDFS.RESOURCE)
public interface ResourceObject extends RDFObject {
String getTriples(RDFFormat format);
void setResource(Resource resource);
void setResourceAsString(String resourceAsString);
String getResourceAsString();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy