public final class ModelUtil extends Object
| Constructor and Description |
|---|
ModelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanIRI(String string)
Clean an illegal IRI string, trying to make it legal (as per RFC 3987).
|
static Set<org.eclipse.rdf4j.model.Resource> |
getMentions(eu.fbk.rdfpro.util.QuadModel model) |
static Set<org.eclipse.rdf4j.model.Resource> |
getMentions(eu.fbk.rdfpro.util.QuadModel model,
int beginIndex,
int endIndex) |
static eu.fbk.rdfpro.util.QuadModel |
getSubModel(eu.fbk.rdfpro.util.QuadModel model,
Iterable<? extends org.eclipse.rdf4j.model.Resource> mentionIDs) |
static org.eclipse.rdf4j.model.IRI |
languageCodeToIRI(String code) |
static String |
languageIRIToCode(org.eclipse.rdf4j.model.IRI uri) |
public static Set<org.eclipse.rdf4j.model.Resource> getMentions(eu.fbk.rdfpro.util.QuadModel model)
public static Set<org.eclipse.rdf4j.model.Resource> getMentions(eu.fbk.rdfpro.util.QuadModel model, int beginIndex, int endIndex)
public static eu.fbk.rdfpro.util.QuadModel getSubModel(eu.fbk.rdfpro.util.QuadModel model,
Iterable<? extends org.eclipse.rdf4j.model.Resource> mentionIDs)
public static org.eclipse.rdf4j.model.IRI languageCodeToIRI(@Nullable String code) throws IllegalArgumentException
IllegalArgumentException@Nullable public static String languageIRIToCode(@Nullable org.eclipse.rdf4j.model.IRI uri) throws IllegalArgumentException
IllegalArgumentException@Nullable public static String cleanIRI(@Nullable String string) throws IllegalArgumentException
string - the IRI string to cleanIllegalArgumentException - in case the supplied input cannot be transformed into a legal IRICopyright © 2016–2020 FBK. All rights reserved.