making all concepts added SKOS concepts

This commit is contained in:
hudajkhan 2013-10-07 17:27:45 -04:00
parent 57a75757ce
commit 316fcf65c5
2 changed files with 6 additions and 2 deletions

View file

@ -171,8 +171,10 @@ public class AddAssociatedConceptGenerator extends VivoBaseGenerator implements
List<String> n3Required = list(
getPrefixesString() + "\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);
//Adding inverse predicate if it exists
if(inversePredicate.size() > 0) {

View file

@ -74,6 +74,7 @@ public class AddAssociatedConceptsPreprocessor extends
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 SKOSConceptType = "http://www.w3.org/2004/02/skos/core#Concept";
// String datatype
@ -631,7 +632,8 @@ public class AddAssociatedConceptsPreprocessor extends
int suffix = index;
String node = nodeBase + suffix;
String n3String = prefixStr;
n3String += "?subject ?predicate " + node + " . ";
n3String += "?subject ?predicate " + node + " . \n" +
node + " <" + RDF.type.getURI() + "> <" + this.SKOSConceptType + "> .";
n3Required.add(n3String);
}
editConfiguration.setN3Required(n3Required);