Package hydra.pg.rdf

Interface Mappings


  • public interface Mappings
    Mappings from property graph schemas to SHACL shapes graphs, and from property graph data to RDF graphs
    • Method Detail

      • edgeTypesToPropertyShapes

        static <T0,​T1> java.util.List<CommonConstraint> edgeTypesToPropertyShapes​(T0 encodeVertexLabel,
                                                                                        java.util.function.Function<EdgeLabel,​Iri> encodeEdgeLabel,
                                                                                        VertexLabel vertexLabel,
                                                                                        java.util.List<EdgeType<T1>> edgeTypes)
        Convert edge types into property shape constraints for a given vertex label
      • encodeEdge_ein

        static <T0> T0 encodeEdge_ein​(Edge<T0> edge)
      • encodeEdge_eout

        static <T0> T0 encodeEdge_eout​(Edge<T0> edge)
      • encodeVertex_val

        static <T0> T0 encodeVertex_val​(Pair<PropertyKey,​T0> kv)
      • encodeVertex_vid

        static <T0> T0 encodeVertex_vid​(Vertex<T0> vertex)
      • encodeVertex_vprops

        static <T0> java.util.Map<PropertyKey,​T0> encodeVertex_vprops​(Vertex<T0> vertex)
      • graphSchemaToShapesGraph

        static <T0> ShapesGraph graphSchemaToShapesGraph​(java.util.function.Function<T0,​Iri> encodeType,
                                                         java.util.function.Function<VertexLabel,​Iri> encodeVertexLabel,
                                                         java.util.function.Function<EdgeLabel,​Iri> encodeEdgeLabel,
                                                         java.util.function.Function<PropertyKey,​Iri> encodeKey,
                                                         GraphSchema<T0> schema)
        Convert a property graph schema to a SHACL shapes graph
      • graphSchemaToShapesGraph_edgeTypes

        static <T0> java.util.List<EdgeType<T0>> graphSchemaToShapesGraph_edgeTypes​(GraphSchema<T0> schema)
      • graphSchemaToShapesGraph_vertexTypes

        static <T0> java.util.List<VertexType<T0>> graphSchemaToShapesGraph_vertexTypes​(GraphSchema<T0> schema)
      • propertyTypeToPropertyShape

        static <T0> PropertyShape propertyTypeToPropertyShape​(java.util.function.Function<T0,​Iri> encodeType,
                                                              java.util.function.Function<PropertyKey,​Iri> encodeKey,
                                                              PropertyType<T0> pt)
        Convert a property type to a SHACL property shape
      • vertexTypeToNodeShape

        static <T0> Definition<Shape> vertexTypeToNodeShape​(java.util.function.Function<T0,​Iri> encodeType,
                                                            java.util.function.Function<VertexLabel,​Iri> encodeLabel,
                                                            java.util.function.Function<PropertyKey,​Iri> encodeKey,
                                                            VertexType<T0> vt)
        Convert a vertex type to a SHACL node shape definition
      • vertexTypeToNodeShape_propTypes

        static <T0> java.util.List<PropertyType<T0>> vertexTypeToNodeShape_propTypes​(VertexType<T0> vt)