Change PropertyKey class name and namespace (#386)
* Change PropertyKey class name and namespace * Fix prefix/namespace error found in code review.
This commit is contained in:
parent
c527de5ad8
commit
a22aa37394
14 changed files with 31468 additions and 31469 deletions
|
@ -68,13 +68,13 @@ public class TranslationConverter {
|
|||
protected static final String THEMES_PATH = "/themes/";
|
||||
private static final String TEMPLATE_BODY = ""
|
||||
+ "?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#NamedIndividual> .\n"
|
||||
+ "?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://vivoweb.org/ontology/core/properties/vocabulary#PropertyKey> .\n"
|
||||
+ "?uri <http://vivoweb.org/ontology/core/properties/vocabulary#hasApp> ?application .\n"
|
||||
+ "?uri <http://vivoweb.org/ontology/core/properties/vocabulary#hasKey> ?key .\n";
|
||||
+ "?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://vivoweb.org/ontology/vitro/ui-label/vocabulary#UILabel> .\n"
|
||||
+ "?uri <http://vivoweb.org/ontology/vitro/ui-label/vocabulary#hasApp> ?application .\n"
|
||||
+ "?uri <http://vivoweb.org/ontology/vitro/ui-label/vocabulary#hasKey> ?key .\n";
|
||||
private static final String TEMPLATE_LABEL = ""
|
||||
+ "?uri <http://www.w3.org/2000/01/rdf-schema#label> ?label .\n";
|
||||
private static final String TEMPLATE_THEME = ""
|
||||
+ "?uri <http://vivoweb.org/ontology/core/properties/vocabulary#hasTheme> ?theme .\n";
|
||||
+ "?uri <http://vivoweb.org/ontology/vitro/ui-label/vocabulary#hasTheme> ?theme .\n";
|
||||
|
||||
private static final String queryWithTheme(String langTag) {
|
||||
return
|
||||
|
|
|
@ -35,7 +35,7 @@ public class TranslationProvider {
|
|||
private static final Log log = LogFactory.getLog(TranslationProvider.class);
|
||||
private static final I18nLogger i18nLogger = new I18nLogger();
|
||||
private static final String QUERY = ""
|
||||
+ "PREFIX : <http://vivoweb.org/ontology/core/properties/vocabulary#>\n"
|
||||
+ "PREFIX : <http://vivoweb.org/ontology/vitro/ui-label/vocabulary#>\n"
|
||||
+ "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"
|
||||
+ "PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> \n"
|
||||
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> \n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue