be.destin.skos.core
Class ConceptScheme

java.lang.Object
  extended by be.destin.skos.core.NoScheme
      extended by be.destin.skos.core.ConceptScheme
All Implemented Interfaces:
SchemeInterface, java.io.Serializable, java.lang.Comparable<SchemeInterface>, org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value
Direct Known Subclasses:
DynamicScheme, MetaScheme

public class ConceptScheme
extends NoScheme

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface be.destin.skos.core.SchemeInterface
fieldSeparator, joker_0_n, pieceBoundary, separator, SESAME_NAMESPACE, skosNamespace
 
Constructor Summary
ConceptScheme()
           
ConceptScheme(SkosManager managerInstance, java.lang.String code)
           
 
Method Summary
 int applicationUsageTotal()
           
 int applicationUsageTotal(java.lang.String anApplication)
           
 int checkDuplicatedLabel(java.util.TreeMap<java.lang.String,java.lang.String> allLabels, boolean languageSensitive)
           
 void ensureReciprocalMatch()
           
 java.util.LinkedList<SchemeUsage> ensuresApplicationUsage(java.lang.String application)
           
 java.lang.String getAbout_Concept(java.lang.String handle)
           
 java.util.Map<java.lang.String,java.lang.String> getAlias()
           
 java.util.LinkedList<SchemeUsage> getApplicationUsage(java.lang.String application)
           
 SchemeUsage getApplicationUsage(java.lang.String application, java.lang.String aRole)
           
 java.util.LinkedList<Concept> getConcept()
           
 java.util.LinkedList<Concept> getConcept(java.util.Collection<java.lang.String> handles)
           
 Concept getConcept(java.lang.String handle)
           
 java.util.Map<java.lang.String,Concept> getConceptMap()
           
 java.util.LinkedHashMap<java.lang.String,ReferringApplication> getConceptReferringApplication(java.lang.String application)
           
 java.util.LinkedList<java.lang.String> getContributor()
           
 UrlList getCreate()
           
 java.util.LinkedList<java.lang.String> getCreator()
           
 TermList getDescription()
           
 UrlList getDisplay()
           
 java.util.LinkedList<Concept> getHasTopConcept()
           
 UrlList getHelp()
           
 UrlList getIcon()
           
 java.util.Set<Concept> getIndexLabel(java.lang.String aLabel)
           
 java.util.TreeSet<java.lang.String> getInError()
           
 java.lang.String getInternalNote()
           
 java.util.Set<java.lang.String> getMatchedSchemes()
           
 java.util.Map<java.lang.String,java.lang.Integer> getMatchedSchemesMap()
           
 int getMaxDepth()
           
 java.lang.String getNamespace()
           
 java.util.LinkedList<NotationScheme> getNotation()
           
 Concept getNotationConcept(java.lang.String indexCode, java.lang.String notationCode)
           
 java.lang.String getPrefixToRemove()
           
 int getSize()
           
 java.util.LinkedList<java.lang.String> getSupraLanguage()
           
 TermList getTitle()
           
 java.util.Map<java.lang.String,java.util.LinkedList<SchemeUsage>> getUsage()
           
 boolean isApplicationUsageModified(java.lang.String application)
           
 boolean isHierarchized()
           
 java.util.ArrayList<SearchResult> labelMatch(java.lang.String query, java.lang.String userLanguage, LabelMatchType matchType)
           
 void preLoadFinished()
           
 void putAlias(java.lang.String origin, java.lang.String handle)
           
 SchemeUsage putApplicationRole(java.lang.String application, java.lang.String role)
           
 void putApplicationUsage(java.lang.String application, java.util.LinkedList<SchemeUsage> knownIndexes)
           
 boolean putApplicationUsage(java.lang.String application, SchemeUsage aRoleUsage)
           
 void putConcept(Concept entry)
           
 void putConcept(java.lang.String handle, Concept entry)
           
 void putIndexLabel(java.lang.String aLabel, Concept aConcept)
           
 void putNotationScheme(NotationScheme notations)
           
 void reloadConcept(java.util.List<Concept> someEntries)
           
 void removeConcept(Concept entry)
           
 void setAlias(java.util.Map<java.lang.String,java.lang.String> aliasses)
           
 void setApplicationUsageModified(java.lang.String application, boolean modified)
           
 void setConcept(java.util.List<Concept> someEntries)
           
 void setConceptMap(java.util.Map<java.lang.String,Concept> someEntries)
           
 void setContributor(java.util.LinkedList<java.lang.String> contributors)
           
 void setCreator(java.util.LinkedList<java.lang.String> creators)
           
 void setInError(java.util.TreeSet<java.lang.String> inError)
           
 void setNotation(java.util.Collection<NotationScheme> notations)
           
 void setNotation(java.util.LinkedList<NotationScheme> notations)
           
 void setPrefixToRemove(java.lang.String prefixToRemove)
           
 void setUsage(java.util.Map<java.lang.String,java.util.LinkedList<SchemeUsage>> knownIndexes)
           
 java.lang.String toHtmlCreation(SkosHtmlManager skosHtmlManager, java.lang.String createIcon, boolean schemeIcon)
          This function returns the presentation of a link to create a new concept
 
Methods inherited from class be.destin.skos.core.NoScheme
addContributor, addCreator, compareTo, equals, findAbout_Concept, getAbout_About, getAbout, getApplication, getConceptInMemory, getConceptRepresentation, getCreate, getCreateAdapted, getDescription, getDisplay, getDisplayAdapted, getErrors, getHelp, getHelpAdapted, getIcon, getIconAdapted, getLastLoaded, getLoadTime, getLocalName, getManagerInstance, getMemorySpace, getNamespaceSesame, getPossibleStatus, getRioNamespace, getTitle, hashCode, isDynamic, putCreate, putDescription, putDisplay, putHelp, putIcon, putTitle, setAbout, setApplication, setConceptRepresentation, setCreate, setDescription, setDisplay, setErrors, setHelp, setIcon, setInternalNote, setLastLoaded, setLoadTime, setManagerInstance, setMemorySpace, setNamespace, setRioNamespace, setSupraLanguage, setTitle, stringValue, toString, toStringLastLoaded, toTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConceptScheme

public ConceptScheme()

ConceptScheme

public ConceptScheme(SkosManager managerInstance,
                     java.lang.String code)
Method Detail

getDisplay

public UrlList getDisplay()
Specified by:
getDisplay in interface SchemeInterface
Overrides:
getDisplay in class NoScheme
Returns:
the displays

getCreate

public UrlList getCreate()
Specified by:
getCreate in interface SchemeInterface
Overrides:
getCreate in class NoScheme
Returns:
the creation URLs

getInternalNote

public java.lang.String getInternalNote()
Specified by:
getInternalNote in interface SchemeInterface
Overrides:
getInternalNote in class NoScheme
Returns:
the internal Note

getHelp

public UrlList getHelp()
Specified by:
getHelp in interface SchemeInterface
Overrides:
getHelp in class NoScheme
Returns:
the helps

getIcon

public UrlList getIcon()
Specified by:
getIcon in interface SchemeInterface
Overrides:
getIcon in class NoScheme
Returns:
the icons

getTitle

public TermList getTitle()
Specified by:
getTitle in interface SchemeInterface
Overrides:
getTitle in class NoScheme
Returns:
the titles

getDescription

public TermList getDescription()
Specified by:
getDescription in interface SchemeInterface
Overrides:
getDescription in class NoScheme
Returns:
the descriptions

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface SchemeInterface
Specified by:
getNamespace in interface org.openrdf.model.URI
Overrides:
getNamespace in class NoScheme
Returns:
the namespace

ensureReciprocalMatch

public void ensureReciprocalMatch()

preLoadFinished

public void preLoadFinished()
Specified by:
preLoadFinished in interface SchemeInterface
Overrides:
preLoadFinished in class NoScheme

getAbout_Concept

public java.lang.String getAbout_Concept(java.lang.String handle)
Specified by:
getAbout_Concept in interface SchemeInterface
Overrides:
getAbout_Concept in class NoScheme
Returns:
the complete prefixed code of an entry (after applying alias)

applicationUsageTotal

public int applicationUsageTotal()

applicationUsageTotal

public int applicationUsageTotal(java.lang.String anApplication)

getApplicationUsage

public java.util.LinkedList<SchemeUsage> getApplicationUsage(java.lang.String application)
Returns:
the knownIndexes for an Application

getApplicationUsage

public SchemeUsage getApplicationUsage(java.lang.String application,
                                       java.lang.String aRole)
Returns:
the knownIndexes for an Application and a role

ensuresApplicationUsage

public java.util.LinkedList<SchemeUsage> ensuresApplicationUsage(java.lang.String application)

getConcept

public java.util.LinkedList<Concept> getConcept()
Specified by:
getConcept in interface SchemeInterface
Overrides:
getConcept in class NoScheme
Returns:
the concepts

getConceptReferringApplication

public java.util.LinkedHashMap<java.lang.String,ReferringApplication> getConceptReferringApplication(java.lang.String application)

getConcept

public java.util.LinkedList<Concept> getConcept(java.util.Collection<java.lang.String> handles)
Specified by:
getConcept in interface SchemeInterface
Overrides:
getConcept in class NoScheme
Returns:
the concepts for an handle (redirected or not). Null if none

getConcept

public Concept getConcept(java.lang.String handle)
Specified by:
getConcept in interface SchemeInterface
Overrides:
getConcept in class NoScheme
Returns:
the concepts for an handle (redirected or not). Null if none

getConceptMap

public java.util.Map<java.lang.String,Concept> getConceptMap()
Returns:
the concepts

getNotation

public java.util.LinkedList<NotationScheme> getNotation()
Returns:
the notations

getHasTopConcept

public java.util.LinkedList<Concept> getHasTopConcept()

getAlias

public java.util.Map<java.lang.String,java.lang.String> getAlias()
Returns:
the aliasses

getUsage

public java.util.Map<java.lang.String,java.util.LinkedList<SchemeUsage>> getUsage()
Returns:
the knownIndexes

putApplicationUsage

public void putApplicationUsage(java.lang.String application,
                                java.util.LinkedList<SchemeUsage> knownIndexes)
Parameters:
knownIndexes - the knownIndexes to set

putApplicationUsage

public boolean putApplicationUsage(java.lang.String application,
                                   SchemeUsage aRoleUsage)
Parameters:
the - knownIndexes for an Application and a role

putApplicationRole

public SchemeUsage putApplicationRole(java.lang.String application,
                                      java.lang.String role)

putConcept

public void putConcept(Concept entry)
Specified by:
putConcept in interface SchemeInterface
Overrides:
putConcept in class NoScheme
Parameters:
entry - to put amongst concepts

putConcept

public void putConcept(java.lang.String handle,
                       Concept entry)
Parameters:
handle - of the entry to put amongst concepts
entry - to put amongst concepts

removeConcept

public void removeConcept(Concept entry)
Parameters:
handle - of the entry to put amongst concepts
entry - to put amongst concepts

putNotationScheme

public void putNotationScheme(NotationScheme notations)
Parameters:
notations - the notations to set

putAlias

public void putAlias(java.lang.String origin,
                     java.lang.String handle)
Parameters:
origin: - handle of the entry to redirect
handle - of the entry to which the origin is redirected

setConcept

public void setConcept(java.util.List<Concept> someEntries)
Specified by:
setConcept in interface SchemeInterface
Overrides:
setConcept in class NoScheme
Parameters:
conceptMap - the concepts to set

reloadConcept

public void reloadConcept(java.util.List<Concept> someEntries)

setConceptMap

public void setConceptMap(java.util.Map<java.lang.String,Concept> someEntries)
Parameters:
conceptMap - the concepts to set

setNotation

public void setNotation(java.util.LinkedList<NotationScheme> notations)
Parameters:
notations - the notations to set

setNotation

public void setNotation(java.util.Collection<NotationScheme> notations)

setAlias

public void setAlias(java.util.Map<java.lang.String,java.lang.String> aliasses)
Parameters:
aliasses - the aliasses to set

setUsage

public void setUsage(java.util.Map<java.lang.String,java.util.LinkedList<SchemeUsage>> knownIndexes)
Parameters:
knownIndexes - the knownIndexes to set

getSize

public int getSize()
Specified by:
getSize in interface SchemeInterface
Overrides:
getSize in class NoScheme

getNotationConcept

public Concept getNotationConcept(java.lang.String indexCode,
                                  java.lang.String notationCode)
Specified by:
getNotationConcept in interface SchemeInterface
Overrides:
getNotationConcept in class NoScheme

getIndexLabel

public java.util.Set<Concept> getIndexLabel(java.lang.String aLabel)

putIndexLabel

public void putIndexLabel(java.lang.String aLabel,
                          Concept aConcept)

labelMatch

public java.util.ArrayList<SearchResult> labelMatch(java.lang.String query,
                                                    java.lang.String userLanguage,
                                                    LabelMatchType matchType)
Specified by:
labelMatch in interface SchemeInterface
Overrides:
labelMatch in class NoScheme

getPrefixToRemove

public java.lang.String getPrefixToRemove()
Returns:
the prefixToRemove

setPrefixToRemove

public void setPrefixToRemove(java.lang.String prefixToRemove)
Parameters:
prefixToRemove - the prefixToRemove to set

isHierarchized

public boolean isHierarchized()
Specified by:
isHierarchized in interface SchemeInterface
Overrides:
isHierarchized in class NoScheme

isApplicationUsageModified

public boolean isApplicationUsageModified(java.lang.String application)

setApplicationUsageModified

public void setApplicationUsageModified(java.lang.String application,
                                        boolean modified)

getMaxDepth

public int getMaxDepth()

toHtmlCreation

public java.lang.String toHtmlCreation(SkosHtmlManager skosHtmlManager,
                                       java.lang.String createIcon,
                                       boolean schemeIcon)
This function returns the presentation of a link to create a new concept

Returns:
the HTML presentation of an authority entry creation

getInError

public java.util.TreeSet<java.lang.String> getInError()
Returns:
the inError

setInError

public void setInError(java.util.TreeSet<java.lang.String> inError)
Parameters:
inError - the inError to set

getMatchedSchemes

public java.util.Set<java.lang.String> getMatchedSchemes()
Returns:
the matchedSchemes

getMatchedSchemesMap

public java.util.Map<java.lang.String,java.lang.Integer> getMatchedSchemesMap()

getCreator

public java.util.LinkedList<java.lang.String> getCreator()
Specified by:
getCreator in interface SchemeInterface
Overrides:
getCreator in class NoScheme

setCreator

public void setCreator(java.util.LinkedList<java.lang.String> creators)
Specified by:
setCreator in interface SchemeInterface
Overrides:
setCreator in class NoScheme

getContributor

public java.util.LinkedList<java.lang.String> getContributor()
Specified by:
getContributor in interface SchemeInterface
Overrides:
getContributor in class NoScheme

setContributor

public void setContributor(java.util.LinkedList<java.lang.String> contributors)
Specified by:
setContributor in interface SchemeInterface
Overrides:
setContributor in class NoScheme

getSupraLanguage

public java.util.LinkedList<java.lang.String> getSupraLanguage()
Specified by:
getSupraLanguage in interface SchemeInterface
Overrides:
getSupraLanguage in class NoScheme
Returns:
the supraLanguage

checkDuplicatedLabel

public int checkDuplicatedLabel(java.util.TreeMap<java.lang.String,java.lang.String> allLabels,
                                boolean languageSensitive)