Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'make-etikettMaker-configurable'
Conflicts: src/main/resources/context.json
- Loading branch information
Showing
9 changed files
with
409 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/main/java/de/hbz/lobid/helper/EtikettMakerInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/*Copyright (c) 2016 "hbz" | ||
This file is part of lobid-rdf-to-json. | ||
etikett is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.hbz.lobid.helper; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author Jan Schnasse | ||
* | ||
*/ | ||
public interface EtikettMakerInterface { | ||
|
||
/** | ||
* @return a map with a json-ld context | ||
*/ | ||
Map<String, Object> getContext(); | ||
|
||
/** | ||
* @param uri the uri | ||
* @return an etikett object contains uri, icon, label, jsonname, | ||
* referenceType | ||
*/ | ||
Etikett getEtikett(String uri); | ||
|
||
/** | ||
* @param name the json name | ||
* @return an etikett object contains uri, icon, label, jsonname, | ||
* referenceType | ||
*/ | ||
Etikett getEtikettByName(String name); | ||
|
||
/** | ||
* @return a list of all Etiketts | ||
*/ | ||
Collection<Etikett> getValues(); | ||
|
||
/** | ||
* @return true if the implementor provides etiketts for all kind of values | ||
* (uris on object position). false if the implementor provides | ||
* etiketts for fields (uris in predicate position) only. | ||
*/ | ||
boolean supportsLabelsForValues(); | ||
|
||
/** | ||
* @return the idAlias is used to substitute all occurrences of "\@id" | ||
*/ | ||
public String getIdAlias(); | ||
|
||
/** | ||
* @return the typeAlias is used to substitute all occurrences of "\@type" | ||
*/ | ||
public String getTypeAlias(); | ||
|
||
/** | ||
* @return returns a json key that is used to store label info | ||
*/ | ||
public String getLabelKey(); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.