Package org.topbraid.jenax.util
Class PrefixUtils
java.lang.Object
org.topbraid.jenax.util.PrefixUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanalignPrefixMap(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Make thedstGraphprefix map the samesrcGraphprefix map, only making chnages where necessary.static booleancopyPrefixMap(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Copy prefix mappings intodstGraphfromsrcGraph, checking whether the prefix mapping is already set.static booleanremoveMissingPrefixes(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Remove prefix mappings fromdstGraphthat do not exist insrcGraph.
-
Constructor Details
-
PrefixUtils
public PrefixUtils()
-
-
Method Details
-
alignPrefixMap
public static boolean alignPrefixMap(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Make thedstGraphprefix map the samesrcGraphprefix map, only making chnages where necessary.- Parameters:
dstGraph- the destination graphsrcGraph- the source graph- Returns:
- false if no changes where made.
-
copyPrefixMap
public static boolean copyPrefixMap(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Copy prefix mappings intodstGraphfromsrcGraph, checking whether the prefix mapping is already set.- Parameters:
dstGraph- the destination graphsrcGraph- the source graph- Returns:
- false if no changes where made.
-
removeMissingPrefixes
public static boolean removeMissingPrefixes(org.apache.jena.graph.Graph dstGraph, org.apache.jena.graph.Graph srcGraph) Remove prefix mappings fromdstGraphthat do not exist insrcGraph.- Parameters:
dstGraph- the destination graphsrcGraph- the source graph- Returns:
- false if no changes where made.
-