public final class RdfModelHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arraysEqual(Object[] array1,
Object[] array2)
Compares 2 arrays to see if thier content is the same independent of
order and considering nulls
|
static boolean |
arraysEquivalent(IRdfModel[] array1,
IRdfModel[] array2)
Compares 2 arrays to see if the property values for the element RdfModelObjects are the same independent of
order and considering nulls
|
static boolean |
equivalentConsideringNull(IRdfModel o1,
IRdfModel o2)
Compares the properties of two RdfModelObjects considering possible null values
|
static org.apache.jena.rdf.model.Resource |
findDuplicateResource(IModelContainer modelContainer,
String uri)
Search the model to see if there is a duplicate resource either based on the
URI or based on other information.
|
static boolean |
stringsEquivalent(String s1,
String s2)
Strings are considered equivalent if they are equal,
or if they are null and/or empty (null and empty strings are considered equivalent)
linefeeds are also normalized (e.g.
|
public static boolean arraysEqual(Object[] array1, Object[] array2)
array1 - array2 - public static boolean stringsEquivalent(String s1, String s2)
s1 - s2 - public static boolean arraysEquivalent(IRdfModel[] array1, IRdfModel[] array2)
array1 - array2 - public static boolean equivalentConsideringNull(IRdfModel o1, IRdfModel o2)
o1 - o2 - public static org.apache.jena.rdf.model.Resource findDuplicateResource(IModelContainer modelContainer, String uri)
modelContainer - uri - InvalidSPDXAnalysisExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.