Class 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 Detail

      • ShaclAstLists

        public ShaclAstLists()
    • 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)