Skip to content
Snippets Groups Projects
Commit e2b53363 authored by Sebastien's avatar Sebastien
Browse files

Fix #7 remove link sentence reference for a UW_lexeme

parent cf45d6c9
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ public class UnlDocumentToRdfConverter {
var uw = (UniversalWordNode) sentenceNode;
// Création de l'universalWord dans le dictionnaire
var universalWordIndividual = sentenceOntModel.createIndividual(sentenceNameSpace + slugify(uw.getUniversalWord().toString()), UNL.UW_Lexeme);
var universalWordIndividual = sentenceOntModel.createIndividual(String.format("%s#%s", uniqId, slugify(uw.getUniversalWord().toString())), UNL.UW_Lexeme);
universalWordIndividual.addLabel(uw.getUniversalWord().toString(), "fr/tetras_libre/unltools/unl");
// Création de l'occurence du l'universalWord
......@@ -88,7 +88,7 @@ public class UnlDocumentToRdfConverter {
sentenceOntModel.add(universalWordIndividual, UNL.has_occurrence, universalWordOccurrence);
for (var attribute : uw.getAttributes()) {
sentenceOntModel.add(universalWordOccurrence, UNL.has_attribute, attribute.toString());
sentenceOntModel.add(universalWordOccurrence, UNL.has_attribute, attribute);
}
for (var graphRefNode : sentencegraph.getNodes()) {
......@@ -102,7 +102,7 @@ public class UnlDocumentToRdfConverter {
this.setSuperstructureWithSubstructure(sentenceOntModel, sentenceIndividual, sentenceOntModel, scopeIndividual);
/*
GraphExtensions.getRelationWithinScopeStream(scopeName, sentencegraph)
GraphExtensions.getRelationWithiUW_LexemenScopeStream(scopeName, sentencegraph)
.forEach(relationWithinScope -> {
try {
var relationWithinScopeUri = RelationsUri.constructRelationUri(scopeName, relationWithinScope);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment