Package org.eclipse.rdf4j.sail.shacl.ast
Class ShaclAstLists
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.ShaclAstLists
-
@InternalUseOnly public class ShaclAstLists extends Object
Internal utility methods for the SHACL AST to quickly convert between java collections and RDF collections. These utilities are not meant for general use as they make several simplifying assumptions for performance reasons:- they add type coercion
- they rely on the use of "stable" identifiers for blank nodes, so that duplicates can be quickly detected and discarded
-
-
Constructor Summary
Constructors Constructor Description ShaclAstLists()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlistToRdf(Collection<? extends org.eclipse.rdf4j.model.Value> values, org.eclipse.rdf4j.model.Resource head, org.eclipse.rdf4j.model.Model model)static <T extends org.eclipse.rdf4j.model.Value>
List<T>toList(ShapeSource shapeSource, org.eclipse.rdf4j.model.Resource head, Class<T> type)
-
-
-
Method Detail
-
listToRdf
public static void listToRdf(Collection<? extends org.eclipse.rdf4j.model.Value> values, org.eclipse.rdf4j.model.Resource head, org.eclipse.rdf4j.model.Model model)
-
toList
public static <T extends org.eclipse.rdf4j.model.Value> List<T> toList(ShapeSource shapeSource, org.eclipse.rdf4j.model.Resource head, Class<T> type)
-
-