making all concepts added SKOS concepts
This commit is contained in:
parent
57a75757ce
commit
316fcf65c5
2 changed files with 6 additions and 2 deletions
|
@ -171,8 +171,10 @@ public class AddAssociatedConceptGenerator extends VivoBaseGenerator implements
|
||||||
List<String> n3Required = list(
|
List<String> n3Required = list(
|
||||||
getPrefixesString() + "\n" +
|
getPrefixesString() + "\n" +
|
||||||
"?subject ?predicate ?conceptNode .\n" +
|
"?subject ?predicate ?conceptNode .\n" +
|
||||||
"?conceptNode <" + RDF.type.getURI() + "> <http://www.w3.org/2002/07/owl#Thing> ."
|
"?conceptNode <" + RDF.type.getURI() + "> <" + this.SKOSConceptType + "> ."
|
||||||
);
|
);
|
||||||
|
//"?conceptNode <" + RDF.type.getURI() + "> <http://www.w3.org/2002/07/owl#Thing> ."
|
||||||
|
|
||||||
List<String> inversePredicate = getInversePredicate(vreq);
|
List<String> inversePredicate = getInversePredicate(vreq);
|
||||||
//Adding inverse predicate if it exists
|
//Adding inverse predicate if it exists
|
||||||
if(inversePredicate.size() > 0) {
|
if(inversePredicate.size() > 0) {
|
||||||
|
|
|
@ -74,6 +74,7 @@ public class AddAssociatedConceptsPreprocessor extends
|
||||||
|
|
||||||
private static String SKOSBroaderURI = "http://www.w3.org/2004/02/skos/core#broader";
|
private static String SKOSBroaderURI = "http://www.w3.org/2004/02/skos/core#broader";
|
||||||
private static String SKOSNarrowerURI = "http://www.w3.org/2004/02/skos/core#narrower";
|
private static String SKOSNarrowerURI = "http://www.w3.org/2004/02/skos/core#narrower";
|
||||||
|
private static String SKOSConceptType = "http://www.w3.org/2004/02/skos/core#Concept";
|
||||||
|
|
||||||
// String datatype
|
// String datatype
|
||||||
|
|
||||||
|
@ -631,7 +632,8 @@ public class AddAssociatedConceptsPreprocessor extends
|
||||||
int suffix = index;
|
int suffix = index;
|
||||||
String node = nodeBase + suffix;
|
String node = nodeBase + suffix;
|
||||||
String n3String = prefixStr;
|
String n3String = prefixStr;
|
||||||
n3String += "?subject ?predicate " + node + " . ";
|
n3String += "?subject ?predicate " + node + " . \n" +
|
||||||
|
node + " <" + RDF.type.getURI() + "> <" + this.SKOSConceptType + "> .";
|
||||||
n3Required.add(n3String);
|
n3Required.add(n3String);
|
||||||
}
|
}
|
||||||
editConfiguration.setN3Required(n3Required);
|
editConfiguration.setN3Required(n3Required);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue