All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.anno4j.model.impl.ResourceObject Maven / Gradle / Ivy

Go to download

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/)

There is a newer version: 2.4
Show newest version
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