public class PGUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PGUtils.RDFPredicate
This class defines how to map RDF predicates to property graph attributes/keys
|
| Constructor and Description |
|---|
PGUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createPropertyGraphViewOnRDF(Connection conn,
String pgGraphName,
String rdfModelName,
boolean virtualModel,
PGUtils.RDFPredicate[] predListForVertexAttrs,
PGUtils.RDFPredicate[] predListForEdges)
This method creates the property graph views (vertex and edge views)
for the given RDF model.
|
public static void createPropertyGraphViewOnRDF(Connection conn, String pgGraphName, String rdfModelName, boolean virtualModel, PGUtils.RDFPredicate[] predListForVertexAttrs, PGUtils.RDFPredicate[] predListForEdges)
conn - an connection instance to Oracle databasepgGraphName - the name of the property graph to be createdrdfModelName - the name of the RDF modelvirtualModel - a flag represents if the RDF model is virtual model or notpredListForVertexAttrs - an array of RDFPredicate objects specifying
how to create vertex view using these predicates; each RDFPredicate includes
an URL of the predicate in RDF model to be treated as a vertex key in the property
graph, and the key name to be used.predListForEdges - an array of RDFPredicate specifying how to create edge
view using these predicates; each RDFPredicate includes an URL of the predicate
in RDF model to be treated as an edge, the edge label to be used, and
the weight of the edge (optional)Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.