Package org.eclipse.rdf4j.sail.shacl.ast
Class ShaclAstLists
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.ShaclAstLists
-
@InternalUseOnly public class ShaclAstLists extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
uuid
-
Constructor Summary
Constructors Constructor Description ShaclAstLists()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
listToRdf(java.util.Collection<? extends Value> values, Resource head, Model model)
private static java.util.List<Value>
toList(ShapeSource shapeSource, Resource head)
static <T extends Value>
java.util.List<T>toList(ShapeSource shapeSource, Resource head, java.lang.Class<T> type)
-
-
-
Method Detail
-
listToRdf
public static void listToRdf(java.util.Collection<? extends Value> values, Resource head, Model model)
-
toList
private static java.util.List<Value> toList(ShapeSource shapeSource, Resource head)
-
toList
public static <T extends Value> java.util.List<T> toList(ShapeSource shapeSource, Resource head, java.lang.Class<T> type)
-
-