adding missing space from prefix definitions (#42)
This commit is contained in:
parent
445bd38d25
commit
33c5367146
3 changed files with 5 additions and 5 deletions
|
@ -556,6 +556,6 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String N3_PREFIX = "@prefix foaf:<http://xmlns.com/foaf/0.1/> .\n";
|
private String N3_PREFIX = "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class VIVODefaultAddMissingIndividualFormGenerator extends DefaultAddMiss
|
||||||
|
|
||||||
protected List<String> getN3Prefixes() {
|
protected List<String> getN3Prefixes() {
|
||||||
List<String> prefixStrings = super.getN3Prefixes();
|
List<String> prefixStrings = super.getN3Prefixes();
|
||||||
prefixStrings.add("@prefix vcard:<http://www.w3.org/2006/vcard/ns#> .");
|
prefixStrings.add("@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .");
|
||||||
return prefixStrings;
|
return prefixStrings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class VIVONewIndividualFormGenerator extends BaseEditConfigurationGenerat
|
||||||
//Person uses first name and last name whereas individual of other class would use label
|
//Person uses first name and last name whereas individual of other class would use label
|
||||||
//middle name is also optional
|
//middle name is also optional
|
||||||
config.setN3Optional(list(
|
config.setN3Optional(list(
|
||||||
N3_PREFIX + "@prefix vcard:<http://www.w3.org/2006/vcard/ns#> .\n"
|
N3_PREFIX + "@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .\n"
|
||||||
+ " ?newInd <http://purl.obolibrary.org/obo/ARG_2000028> ?newVcardInd . \n"
|
+ " ?newInd <http://purl.obolibrary.org/obo/ARG_2000028> ?newVcardInd . \n"
|
||||||
+ " ?newVcardInd <http://purl.obolibrary.org/obo/ARG_2000029> ?newInd . \n"
|
+ " ?newVcardInd <http://purl.obolibrary.org/obo/ARG_2000029> ?newInd . \n"
|
||||||
+ " ?newVcardInd a vcard:Individual . \n"
|
+ " ?newVcardInd a vcard:Individual . \n"
|
||||||
|
@ -52,7 +52,7 @@ public class VIVONewIndividualFormGenerator extends BaseEditConfigurationGenerat
|
||||||
+ " ?newVcardName vcard:givenName ?firstName . \n"
|
+ " ?newVcardName vcard:givenName ?firstName . \n"
|
||||||
+ " ?newVcardName vcard:familyName ?lastName . \n",
|
+ " ?newVcardName vcard:familyName ?lastName . \n",
|
||||||
N3_PREFIX + " ?newInd <" + RDFS.label.getURI() + "> ?label .",
|
N3_PREFIX + " ?newInd <" + RDFS.label.getURI() + "> ?label .",
|
||||||
N3_PREFIX + "@prefix vcard:<http://www.w3.org/2006/vcard/ns#> .\n"
|
N3_PREFIX + "@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .\n"
|
||||||
+ " ?newInd <http://purl.obolibrary.org/obo/ARG_2000028> ?newVcardInd . \n"
|
+ " ?newInd <http://purl.obolibrary.org/obo/ARG_2000028> ?newVcardInd . \n"
|
||||||
+ " ?newVcardInd a vcard:Individual . \n"
|
+ " ?newVcardInd a vcard:Individual . \n"
|
||||||
+ " ?newVcardInd vcard:hasName ?newVcardName . \n"
|
+ " ?newVcardInd vcard:hasName ?newVcardName . \n"
|
||||||
|
@ -204,5 +204,5 @@ public class VIVONewIndividualFormGenerator extends BaseEditConfigurationGenerat
|
||||||
editConfiguration.setLiteralsInScope(new HashMap<String, List<Literal>>());
|
editConfiguration.setLiteralsInScope(new HashMap<String, List<Literal>>());
|
||||||
}
|
}
|
||||||
|
|
||||||
private String N3_PREFIX = "@prefix foaf:<http://xmlns.com/foaf/0.1/> .\n";
|
private String N3_PREFIX = "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue