|
GeoPubby
Version 0.1.0.0
|
A store for labels, descriptions and other metadata of classes and properties. More...

Classes | |
| class | CachedPropertyCollection |
| class | I18nStringValueCache |
| class | IntegerValueCache |
| class | ValueCache |
Public Member Functions | |
| void | setDataSource (DataSource dataSource) |
| Needs to be set before the instance is used! This is to allow creation of the store before the dataset is fully assembled. More... | |
| void | setDefaultLanguage (String defaultLanguage) |
| Literal | getLabel (String iri, boolean preferPlural) |
| Literal | getLabel (String iri, boolean preferPlural, String language) |
| Literal | getCachedLabel (String iri, boolean preferPlural) |
| Returns a label, only taking into account previously cached values, without querying the data sources. More... | |
| Literal | getInverseLabel (String iri, boolean preferPlural) |
| Literal | getInverseLabel (String iri, boolean preferPlural, String language) |
| Literal | getDescription (String iri) |
| Literal | getDescription (String iri, String language) |
| int | getWeight (Property property, boolean forInverse) |
Returns the conf:weight of the property. More... | |
| CachedPropertyCollection | getHighIndegreeProperties () |
| CachedPropertyCollection | getHighOutdegreeProperties () |
Private Attributes | |
| DataSource | dataSource |
| String | defaultLanguage = "en" |
| final I18nStringValueCache | labels = new I18nStringValueCache(RDFS.label, false) |
| final I18nStringValueCache | pluralLabels = new I18nStringValueCache(CONF.pluralLabel, false) |
| final I18nStringValueCache | inverseLabels = new I18nStringValueCache(RDFS.label, true) |
| final I18nStringValueCache | inversePluralLabels = new I18nStringValueCache(CONF.pluralLabel, true) |
| final I18nStringValueCache | descriptions = new I18nStringValueCache(RDFS.comment, false) |
| final IntegerValueCache | weights = new IntegerValueCache(CONF.weight, false) |
| final IntegerValueCache | inverseWeights = new IntegerValueCache(CONF.weight, true) |
| final CachedPropertyCollection | highIndegreeProperties = new CachedPropertyCollection(CONF.HighIndregreeProperty) |
| final CachedPropertyCollection | highOutdegreeProperties = new CachedPropertyCollection(CONF.HighOutdregreeProperty) |
A store for labels, descriptions and other metadata of classes and properties.
Values are retrieved from a DataSource and cached.
| Literal getCachedLabel | ( | String | iri, |
| boolean | preferPlural | ||
| ) |
Returns a label, only taking into account previously cached values, without querying the data sources.
Fast.
| iri | IRI of the resource whose label to return |
| preferPlural | Return conf:pluralLabel if available |
References VocabularyStore.defaultLanguage, VocabularyStore.I18nStringValueCache.getCached(), VocabularyStore.labels, and VocabularyStore.pluralLabels.
Referenced by ResourceDescription.Value.getLabel().
| Literal getDescription | ( | String | iri | ) |
References VocabularyStore.defaultLanguage.
Referenced by ResourceDescription.ResourceProperty.getDescription(), and ResourceDescription.Value.getDescription().
| Literal getDescription | ( | String | iri, |
| String | language | ||
| ) |
References VocabularyStore.descriptions, and VocabularyStore.I18nStringValueCache.get().
| CachedPropertyCollection getHighIndegreeProperties | ( | ) |
References VocabularyStore.highIndegreeProperties.
Referenced by Dataset.buildDataSource(), and ResourceDescription.learnHighDegreeProperties().
| CachedPropertyCollection getHighOutdegreeProperties | ( | ) |
References VocabularyStore.highOutdegreeProperties.
Referenced by Dataset.buildDataSource(), and ResourceDescription.learnHighDegreeProperties().
| Literal getInverseLabel | ( | String | iri, |
| boolean | preferPlural | ||
| ) |
References VocabularyStore.defaultLanguage.
Referenced by ResourceDescription.ResourceProperty.getInverseLabel(), and VocabularyStore.getInverseLabel().
| Literal getInverseLabel | ( | String | iri, |
| boolean | preferPlural, | ||
| String | language | ||
| ) |
References VocabularyStore.I18nStringValueCache.get(), VocabularyStore.getInverseLabel(), VocabularyStore.inverseLabels, and VocabularyStore.inversePluralLabels.
| Literal getLabel | ( | String | iri, |
| boolean | preferPlural | ||
| ) |
References VocabularyStore.defaultLanguage.
Referenced by ResourceDescription.Value.getLabel(), ResourceDescription.ResourceProperty.getLabel(), and VocabularyStore.getLabel().
| Literal getLabel | ( | String | iri, |
| boolean | preferPlural, | ||
| String | language | ||
| ) |
| int getWeight | ( | Property | property, |
| boolean | forInverse | ||
| ) |
Returns the conf:weight of the property.
The inverse's weight can be requested; if no inverse weight is specified then the "forward" weight is used.
| property | The property whose weight to return |
| forInverse | If true, look for the inverse's weight first |
References VocabularyStore.ValueCache< K >.get(), VocabularyStore.inverseWeights, and VocabularyStore.weights.
Referenced by ResourceDescription.ResourceProperty.compareTo().
| void setDataSource | ( | DataSource | dataSource | ) |
Needs to be set before the instance is used! This is to allow creation of the store before the dataset is fully assembled.
References VocabularyStore.dataSource.
Referenced by Configuration.Configuration().
| void setDefaultLanguage | ( | String | defaultLanguage | ) |
References VocabularyStore.defaultLanguage.
Referenced by Configuration.Configuration().
|
private |
|
private |
|
private |
Referenced by VocabularyStore.getDescription().
|
private |
Referenced by VocabularyStore.getHighIndegreeProperties().
|
private |
Referenced by VocabularyStore.getHighOutdegreeProperties().
|
private |
Referenced by VocabularyStore.getInverseLabel().
|
private |
Referenced by VocabularyStore.getInverseLabel().
|
private |
Referenced by VocabularyStore.getWeight().
|
private |
Referenced by VocabularyStore.getCachedLabel(), and VocabularyStore.getLabel().
|
private |
Referenced by VocabularyStore.getCachedLabel(), and VocabularyStore.getLabel().
|
private |
Referenced by VocabularyStore.getWeight().