Package hydra.pg.rdf
Interface Mappings
-
public interface MappingsMappings from property graph schemas to SHACL shapes graphs, and from property graph data to RDF graphs
-
-
Method Summary
Static Methods Modifier and Type Method Description 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 labelstatic <T0> DescriptionencodeEdge(PgRdfEnvironment<T0> env, Edge<T0> edge)Encode a property graph edge as an RDF descriptionstatic <T0> T0encodeEdge_ein(Edge<T0> edge)static <T0> T0encodeEdge_eout(Edge<T0> edge)static <T0> GraphencodeLazyGraph(PgRdfEnvironment<T0> env, LazyGraph<T0> lg)Encode a lazy property graph as an RDF graphstatic <T0> DescriptionencodeVertex(PgRdfEnvironment<T0> env, Vertex<T0> vertex)Encode a property graph vertex as an RDF descriptionstatic <T0> T0encodeVertex_val(Pair<PropertyKey,T0> kv)static <T0> T0encodeVertex_vid(Vertex<T0> vertex)static <T0> java.util.Map<PropertyKey,T0>encodeVertex_vprops(Vertex<T0> vertex)static <T0> ShapesGraphgraphSchemaToShapesGraph(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 graphstatic <T0> java.util.List<EdgeType<T0>>graphSchemaToShapesGraph_edgeTypes(GraphSchema<T0> schema)static <T0> java.util.List<VertexType<T0>>graphSchemaToShapesGraph_vertexTypes(GraphSchema<T0> schema)static <T0> PropertyShapepropertyTypeToPropertyShape(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 shapestatic <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 definitionstatic <T0> java.util.List<PropertyType<T0>>vertexTypeToNodeShape_propTypes(VertexType<T0> vt)
-
-
-
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
static <T0> Description encodeEdge(PgRdfEnvironment<T0> env, Edge<T0> edge)
Encode a property graph edge as an RDF description
-
encodeEdge_ein
static <T0> T0 encodeEdge_ein(Edge<T0> edge)
-
encodeEdge_eout
static <T0> T0 encodeEdge_eout(Edge<T0> edge)
-
encodeLazyGraph
static <T0> Graph encodeLazyGraph(PgRdfEnvironment<T0> env, LazyGraph<T0> lg)
Encode a lazy property graph as an RDF graph
-
encodeVertex
static <T0> Description encodeVertex(PgRdfEnvironment<T0> env, Vertex<T0> vertex)
Encode a property graph vertex as an RDF description
-
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)
-
-