org.openrdf.idGenerator.IDGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibaba-repository-object Show documentation
Show all versions of alibaba-repository-object Show documentation
The Object Repository maps Java objects to and from RDF resources and OWL classes to Java classes in a non-intrusive manner that enables developers to work at the object level.
The newest version!
package org.openrdf.idGenerator;
import org.openrdf.model.Resource;
import org.openrdf.model.URI;
import org.openrdf.sail.memory.model.MemValueFactory;
import java.util.Set;
/**
* Interface for IDGenerators. IDGenerators provide a method to generate a unique ressource for internal RDF nodes.
*/
public interface IDGenerator {
public static final Resource BLANK_RESOURCE = new MemValueFactory().createURI("urn:anno4j:BLANK");
/**
* Generates a unique resource.
* @return a Resource containing a unique identifier.
* @param types
*/
Resource generateID(Set types);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy