|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.destin.skos.core.SkosManager
public class SkosManager
This is the entry point to ASKOSI (Application Services for Knowledge Organization and System Integration). The method SkosManager.getInstance(configurationDirectory) is necessary to get access to the Schemes defined in a specific Configuration Directory. Multiple instances of the SkosManager (and therefore multiple configuration directories) can coexist but they are impervious to each other. The most usefuls methods are:
Field Summary | |
---|---|
static java.lang.String |
aboutApplications
"about" code of the ConceptScheme containing the list of applications documented by this ASKOSI instance. |
static java.lang.String |
aboutCategories
"about" code of the ConceptScheme containing the list of known categories of records from different applications containing references to Concepts |
static java.lang.String |
aboutExternals
"about" code of the ConceptScheme containing the list of Schemes NOT managed by ASKOSI but that are used to control metadata (to help transition to integral ASKOSI integration in a system) |
static java.lang.String |
aboutLanguages
"about" code of the ConceptScheme containing the list of all languages. |
static java.lang.String |
aboutMetaScheme
"about" code of the virtual Scheme containing the list of schemes loaded by this ASKOSI instance. |
static java.lang.String |
aboutPrefixes
"about" code of the ConceptScheme containing the list of known prefixes for this ASKOSI instance. |
static java.lang.String |
aboutProfiles
ASKOSI users profiles with different update rights and viewing preferences. |
static java.lang.String |
aboutRelationQualifiers
"about" code of the ConceptScheme containing the list of allowed Qualifiers to Relations between Concepts. |
static java.lang.String |
aboutRoles
"about" code of the ConceptScheme containing the list of possible "roles" (indexes using the ConceptScheme as a search criteria). |
static java.lang.String |
aboutSources
"about" code of the ConceptScheme containing the list of allowed Sources for Terms within Concepts. |
static java.lang.String |
aboutStatus
"about" code of the ConceptScheme containing the list of allowed Status for the ASKOSI update workflow |
static java.lang.String |
aboutSuffixes
"about" code of the ConceptScheme containing the list of known suffixes for this ASKOSI instance. |
static java.lang.String |
aboutUsers
ASKOSI users |
static java.lang.String |
synonymPrefix
When displaying the result of search (or autocomplete), prefix to a synonym matching the search criteria and redirecting to the preferred term |
Method Summary | |
---|---|
Concept |
findConcept(java.lang.String value,
SchemeInterface defScheme,
java.util.Set<SchemeInterface> schemes)
Finds a concept by its code, validating it against a list of schemes it may belong. |
java.lang.String |
findNamespace(java.lang.String namespace)
|
ConceptScheme |
getApplications()
|
Concept |
getApplicationScheme_Concept(java.lang.String application,
java.lang.String fullHandle,
java.lang.String defaultScheme)
|
ConceptScheme |
getCategories()
|
ChangeManager |
getChangeManager()
|
java.util.Collection<Concept> |
getConcept(java.util.Collection<java.lang.String> abouts)
|
Concept[] |
getConcept(java.lang.String uri)
Get all Concepts directly related to the specified Concept. |
ConceptScheme |
getConceptScheme(java.lang.String uri)
|
ConceptScheme[] |
getConceptSchemes()
|
java.lang.String |
getConfigDirectory()
|
java.util.LinkedList<java.lang.String> |
getDefinedApplicationsList()
|
java.util.LinkedList<java.lang.String> |
getDefinedRelationQualifiersList()
|
java.util.LinkedList<java.lang.String> |
getDefinedRolesList()
|
Concept |
getExternal(java.lang.String externalCode)
|
SchemeInterface |
getExternals()
|
static SkosManager |
getInstance(java.lang.String configDirectory)
This procedure is the essential entry point to every ASKOSI services. |
static java.util.Set<java.lang.String> |
getInstancesList()
List configuration directories corresponding to opened SkosManager instances. |
TermList |
getKeywordMatch(java.lang.String keyword,
boolean includeNPT)
|
SchemeInterface |
getLanguages()
|
java.util.ArrayList<Concept> |
getMatchingConcepts(java.util.Collection<SearchResult> matches)
|
MetaScheme |
getMetaScheme()
|
SchemeInterface |
getPrefixes()
|
ConceptScheme |
getProfiles()
|
ConceptScheme |
getRelationQualifiers()
|
ConceptScheme |
getRoles()
|
SchemeInterface |
getScheme_(java.lang.String fullHandle)
|
Concept |
getScheme_Concept(java.lang.String fullHandle)
|
Concept |
getScheme_Concept(java.lang.String fullHandle,
SchemeInterface defaultScheme)
|
Concept |
getScheme_Concept(java.lang.String fullHandle,
java.lang.String defListCode)
|
SchemeInterface |
getScheme(java.lang.String key)
|
java.util.Map<java.lang.String,SchemeInterface> |
getSchemes()
|
java.util.HashMap<java.lang.String,UrlList> |
getSearch()
|
UrlList |
getSearch(java.lang.String application)
|
ConceptScheme |
getSources()
|
ConceptScheme |
getStatus()
|
SchemeInterface |
getSuffixes()
|
Concept[] |
getTopmostConcepts(java.lang.String uri)
FACET project API |
java.lang.String |
getUrlRoots(java.lang.String application)
|
ConceptScheme |
getUsers()
|
void |
initApplication(java.lang.String applicationID,
java.lang.String applicationRoot)
|
SchemeInterface |
openScheme(java.lang.String about)
|
boolean |
putScheme(SchemeInterface scheme)
|
void |
putScheme(java.lang.String key,
SchemeInterface scheme)
Record the existence of a Scheme for later accesses. |
void |
setApplications(SchemeInterface applications)
|
void |
setCategories(SchemeInterface categories)
|
void |
setExternals(SchemeInterface externals)
|
void |
setLanguages(SchemeInterface languages)
|
void |
setPrefixes(SchemeInterface prefixes)
|
void |
setProfiles(SchemeInterface profiles)
|
void |
setRelationQualifiers(SchemeInterface relationQualifiers)
|
void |
setRoles(SchemeInterface roles)
|
void |
setSources(SchemeInterface sources)
No foreseen use. |
void |
setStatus(SchemeInterface statuses)
|
void |
setSuffixes(SchemeInterface suffixes)
|
void |
setUsers(SchemeInterface users)
|
java.util.HashSet<java.lang.String> |
toSetAbout(java.lang.String input)
Takes any text String and returns a set of the scheme_about codes of the concepts within it. |
java.util.HashSet<Concept> |
toSetScheme_Concept(java.lang.String input,
SchemeInterface defaultList,
boolean prefixSuffix)
Takes any text String and returns a set of concept references within it. |
java.lang.String |
toSortScheme_Concept(java.lang.String input,
java.lang.String language,
SchemeInterface defaultList,
boolean prefixSuffix)
|
java.lang.String |
toStringScheme_Concept(java.lang.String input,
java.lang.String language,
SchemeInterface defaultList,
boolean prefixSuffix)
Takes any text String, detects concept references within it and translates them with the best prefLabel for the language specified. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String aboutMetaScheme
public static final java.lang.String aboutPrefixes
public static final java.lang.String aboutSuffixes
public static final java.lang.String aboutExternals
public static final java.lang.String aboutLanguages
public static final java.lang.String aboutApplications
public static final java.lang.String aboutRoles
public static final java.lang.String aboutRelationQualifiers
public static final java.lang.String aboutCategories
public static final java.lang.String aboutProfiles
public static final java.lang.String aboutUsers
public static final java.lang.String aboutSources
public static final java.lang.String aboutStatus
public static final java.lang.String synonymPrefix
Method Detail |
---|
public static SkosManager getInstance(java.lang.String configDirectory)
configDirectory
- the precise path (case sensitive) where the configurations of ASKOSI Concept Schemes are stored. Usually, the same directory for all applications sharing those schemes.
public Concept[] getConcept(java.lang.String uri)
uri
-
public java.util.Collection<Concept> getConcept(java.util.Collection<java.lang.String> abouts)
abouts
-
public java.util.ArrayList<Concept> getMatchingConcepts(java.util.Collection<SearchResult> matches)
public ConceptScheme getConceptScheme(java.lang.String uri)
public ConceptScheme[] getConceptSchemes()
public Concept getExternal(java.lang.String externalCode)
public SchemeInterface getExternals()
public TermList getKeywordMatch(java.lang.String keyword, boolean includeNPT)
public SchemeInterface getPrefixes()
public SchemeInterface getScheme(java.lang.String key)
key:
- code of the list to access
public SchemeInterface getLanguages()
public void setLanguages(SchemeInterface languages)
languages
- the languages to setpublic Concept getScheme_Concept(java.lang.String fullHandle, SchemeInterface defaultScheme)
public Concept getScheme_Concept(java.lang.String fullHandle)
public Concept getScheme_Concept(java.lang.String fullHandle, java.lang.String defListCode)
public SchemeInterface getScheme_(java.lang.String fullHandle)
public Concept getApplicationScheme_Concept(java.lang.String application, java.lang.String fullHandle, java.lang.String defaultScheme)
public java.util.Map<java.lang.String,SchemeInterface> getSchemes()
public SchemeInterface getSuffixes()
public Concept[] getTopmostConcepts(java.lang.String uri)
public void initApplication(java.lang.String applicationID, java.lang.String applicationRoot)
public SchemeInterface openScheme(java.lang.String about)
public boolean putScheme(SchemeInterface scheme)
public java.lang.String findNamespace(java.lang.String namespace)
public void putScheme(java.lang.String key, SchemeInterface scheme)
key
- "about" code of the scheme to recordscheme
- scheme object to recordpublic void setExternals(SchemeInterface externals)
externals
- the externals to setpublic void setPrefixes(SchemeInterface prefixes)
prefixes
- the prefixes to setpublic void setSuffixes(SchemeInterface suffixes)
suffixes
- the suffixes to setpublic Concept findConcept(java.lang.String value, SchemeInterface defScheme, java.util.Set<SchemeInterface> schemes)
value
- Code to translatedefScheme
- Default scheme if the code is not prefixed by its scheme code. May be null.schemes
- List of the schemes to which the concept is allowed to pertain
public java.lang.String toStringScheme_Concept(java.lang.String input, java.lang.String language, SchemeInterface defaultList, boolean prefixSuffix)
input
- Text to analyzelanguage
- User languagedefaultList
- Not useful: null recommended. Default scheme if the code is not prefixed by its scheme code (but contains an underscore!)prefixSuffix
- Does prefix (prefixCode_) or suffix (_suffixCode) should be detected?
public java.util.HashSet<Concept> toSetScheme_Concept(java.lang.String input, SchemeInterface defaultList, boolean prefixSuffix)
input
- Text to analyzedefaultList
- Not useful: null recommended. Default scheme if the code is not prefixed by its scheme code (but contains an underscore!)prefixSuffix
- Does prefix (prefixCode_) or suffix (_suffixCode) should be detected?
public java.util.HashSet<java.lang.String> toSetAbout(java.lang.String input)
input
- Text to analyze
public java.lang.String getConfigDirectory()
public ConceptScheme getApplications()
public void setApplications(SchemeInterface applications)
applications
- the applications to setpublic ConceptScheme getRoles()
public void setRoles(SchemeInterface roles)
roles
- the roles to setpublic ConceptScheme getRelationQualifiers()
public void setRelationQualifiers(SchemeInterface relationQualifiers)
public ConceptScheme getStatus()
public void setStatus(SchemeInterface statuses)
public java.util.LinkedList<java.lang.String> getDefinedApplicationsList()
public java.util.LinkedList<java.lang.String> getDefinedRolesList()
public java.util.LinkedList<java.lang.String> getDefinedRelationQualifiersList()
public java.util.HashMap<java.lang.String,UrlList> getSearch()
public UrlList getSearch(java.lang.String application)
public ConceptScheme getCategories()
public void setCategories(SchemeInterface categories)
categories
- the categories to setpublic ConceptScheme getProfiles()
public void setProfiles(SchemeInterface profiles)
public ConceptScheme getUsers()
public void setUsers(SchemeInterface users)
public java.lang.String getUrlRoots(java.lang.String application)
public java.lang.String toSortScheme_Concept(java.lang.String input, java.lang.String language, SchemeInterface defaultList, boolean prefixSuffix)
input
- language
- defaultList
- prefixSuffix
-
public ChangeManager getChangeManager()
public MetaScheme getMetaScheme()
public ConceptScheme getSources()
public void setSources(SchemeInterface sources)
sources
- public static java.util.Set<java.lang.String> getInstancesList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |