public class PGUtils
extends java.lang.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(java.sql.Connection conn, java.lang.String pgGraphName, java.lang.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(java.sql.Connection conn,
java.lang.String pgGraphName,
java.lang.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, 2018 Oracle and/or its affiliates. All Rights Reserved.