Class 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()  
    • Field Detail

      • uuid

        private static final java.lang.String uuid
    • Constructor Detail

      • ShaclAstLists

        public ShaclAstLists()
    • Method Detail

      • listToRdf

        public static void listToRdf​(java.util.Collection<? extends Value> values,
                                     Resource head,
                                     Model model)
      • toList

        public static <T extends Value> java.util.List<T> toList​(ShapeSource shapeSource,
                                                                 Resource head,
                                                                 java.lang.Class<T> type)