public class Prefixes extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Prefixes.ImmutablePrefixes |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
s_semanticWebPrefixes
semantic prefixes
|
static Prefixes |
STANDARD_PREFIXES
standard prefixes
|
| Constructor and Description |
|---|
Prefixes()
Prefixes
|
| Modifier and Type | Method and Description |
|---|---|
String |
abbreviateIRI(String iri) |
boolean |
addPrefixes(Prefixes prefixes)
Registers all the prefixes from the supplied object.
|
boolean |
canBeExpanded(String iri)
Checks whether the given IRI can be expanded
|
boolean |
declareDefaultPrefix(String defaultPrefixIRI) |
boolean |
declareInternalPrefixes(Collection<String> individualIRIs,
Collection<String> anonIndividualIRIs)
Registers HermiT's internal prefixes with this object.
|
boolean |
declarePrefix(String prefixName,
String prefixIRI) |
boolean |
declareSemanticWebPrefixes()
Registers the well-known Semantic Web prefixes.
|
String |
expandAbbreviatedIRI(String abbreviation)
Expands a full IRI from the abbreviated one, which is of one of the following forms:
'prefix:name', where 'prefix' is a registered prefix name (can be empty), or
'<iri>', where 'iri' is an IRI.
|
String |
getPrefixIRI(String prefixName) |
Map<String,String> |
getPrefixIRIsByPrefixName() |
String |
getPrefixName(String prefixIRI) |
static boolean |
isInternalIRI(String iri)
Determines whether the supplied IRI is used internally by HermiT.
|
static boolean |
isValidLocalName(String localName)
Determines whether the supplied string is a valid local name.
|
String |
toString() |
public static final Map<String,String> s_semanticWebPrefixes
public static final Prefixes STANDARD_PREFIXES
public String abbreviateIRI(String iri)
iri - iripublic String expandAbbreviatedIRI(String abbreviation)
abbreviation - inputpublic boolean canBeExpanded(String iri)
public boolean declarePrefix(String prefixName, String prefixIRI)
prefixName - prefixNameprefixIRI - prefixIRIpublic boolean declareDefaultPrefix(String defaultPrefixIRI)
defaultPrefixIRI - defaultPrefixIRIpublic Map<String,String> getPrefixIRIsByPrefixName()
public String getPrefixName(String prefixIRI)
prefixIRI - prefixIRIpublic boolean declareInternalPrefixes(Collection<String> individualIRIs, Collection<String> anonIndividualIRIs)
individualIRIs - the collection of IRIs used in individuals (used for registering nominal prefix names)anonIndividualIRIs - anonIndividualIRIspublic boolean declareSemanticWebPrefixes()
public boolean addPrefixes(Prefixes prefixes)
prefixes - the object from which the prefixes are takenpublic static boolean isInternalIRI(String iri)
iri - iripublic static boolean isValidLocalName(String localName)
localName - localNameCopyright © 2020. All rights reserved.