* @param relatedSubject
*/
public synchronized void addRelation(String subject, KeywordRelation related, String relatedSubject) throws AccessDeniedException, IOException,
MalformedQueryException, QueryEvaluationException, GraphException {
Graph myGraph = repository.getGraph();
// Set namespace skos and predicates
ValueFactory myFactory = myGraph.getValueFactory();
String namespaceSkos = "http://www.w3.org/2004/02/skos/core#";
URI relationURI = myFactory .createURI(namespaceSkos, related.name);
URI opposteRelationURI = myFactory .createURI(namespaceSkos, related.opposite().name);
URI subjectURI = myFactory.createURI(subject);
URI relatedSubjectURI = myFactory.createURI(relatedSubject);
myGraph.add(subjectURI, relationURI, relatedSubjectURI);
myGraph.add(relatedSubjectURI, opposteRelationURI, subjectURI);
}