Interface TypeDecider
- All Known Implementing Classes:
TypeDeciderImpl
public interface TypeDecider
A type decider manages a set of associations between descriptions of resources and Java classes.
In the simplest case, these descriptions are based on the rdf:type property.
On the one hand, a type decider yields for a given resource a set of Java classes it can be viewed with.
While not mandatory, a common use case is for these classes to be subclasses of
Resource
that can be used directly as views using resource.as(viewClass).
On the other hand, a type decider can enrich a resource with information from which its assocation
to one or more Java classes can be inferred.- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionCollection<Class<?>>getApplicableTypes(org.apache.jena.rdf.model.Resource subject) Yield the classes associated with the resource's descriptionvoidwriteTypeTriples(org.apache.jena.rdf.model.Resource outResource, Class<?> clazz) Add triples to the given resource that associates it with the provided class.
-
Method Details
-
getApplicableTypes
Yield the classes associated with the resource's description- Parameters:
subject-- Returns:
-
writeTypeTriples
Add triples to the given resource that associates it with the provided class.- Parameters:
outResource-clazz-
-