\n";
- // descripcion
- evaluationOutput = evaluationOutput + "
" + description + "
";
-
- // affected elements
- if (code.contentEquals("P10") || code.contentEquals("P22") || code.contentEquals("P37")
- || code.contentEquals("P38") || code.contentEquals("P39")) {
- evaluationOutput = evaluationOutput + "
"
- + "*This pitfall applies to the ontology in general instead of specific elements"
- + "
";
- } else if (code.contentEquals("P03")) {
- Resource affectedE = ind.getPropertyResourceValue(hasAffectedElement);
- evaluationOutput = evaluationOutput + "
" + "The property " + "" + affectedE.getURI() + ""
- + " might be replaced by an ontology language predicate as for example "
- + "\"rdf:type\" or \"rdfs:subclassOf\" or \"owl:sameAs\"" + "
";
- }
- else if (code.contentEquals("P36")) {
- evaluationOutput = evaluationOutput + "
"
- + "*This pitfall applies to the ontology in general instead of specific elements and it appears in the ontology URI."
- // + "" + this.uriOnto + ""
- + "
";
- }
-
- else {
- evaluationOutput = evaluationOutput + "
"
- + "This pitfall affects to the following ontology elements: " + "
";
- if (code.contentEquals("P05")) {
- NodeIterator elements = ind.listPropertyValues(mightNotBeInverseOf);
-
- evaluationOutput = evaluationOutput + "
";
-
- while (elements.hasNext()) {
- String uri = elements.next().asResource().getURI();
- Individual indi = model.getIndividual(uri);
-
- NodeIterator elementos = indi.listPropertyValues(hasAffectedElement);
- String first = elementos.next().asLiteral().getString();
- String second = elementos.next().asLiteral().getString();
- evaluationOutput = evaluationOutput + "- " + "" + first + "" + " may not be inverse of "
- + "" + second + "" + "
";
- }
-
- evaluationOutput = evaluationOutput + "
";
- } else if (code.contentEquals("P13")) {
-
- NodeIterator elements = ind.listPropertyValues(noSuggestion);
-
- evaluationOutput = evaluationOutput + "
";
-
- while (elements.hasNext()) {
- String uri = elements.next().asResource().getURI();
- Individual indi = model.getIndividual(uri);
-
- NodeIterator elementos = indi.listPropertyValues(hasAffectedElement);
- while (elementos.hasNext()) {
- String first = elementos.next().asLiteral().getString();
- evaluationOutput = evaluationOutput + "- " + "" + first + "" + "
";
- }
- }
-
- evaluationOutput = evaluationOutput + "";
-
- } else if (code.contentEquals("P30")) {
-
- NodeIterator elements = ind.listPropertyValues(hasEquivalentClass);
-
- evaluationOutput = evaluationOutput + "";
-
- while (elements.hasNext()) {
- String uri = elements.next().asResource().getURI();
- Individual indi = model.getIndividual(uri);
-
- NodeIterator elementos = indi.listPropertyValues(hasAffectedElement);
-
- String first = elementos.next().asLiteral().getString();
- String second = elementos.next().asLiteral().getString();
- evaluationOutput = evaluationOutput + "- " + "" + first + "" + " , " + "" + second + "" + "
";
- }
-
- evaluationOutput = evaluationOutput + "";
-
- } else if (code.contentEquals("P31")) {
-
- NodeIterator elements = ind.listPropertyValues(hasWrongEquivalentClass);
-
- evaluationOutput = evaluationOutput + "";
-
- while (elements.hasNext()) {
- String uri = elements.next().asResource().getURI();
- Individual indi = model.getIndividual(uri);
-
- NodeIterator elementos = indi.listPropertyValues(hasAffectedElement);
-
- String first = elementos.next().asLiteral().getString();
- String second = elementos.next().asLiteral().getString();
- evaluationOutput = evaluationOutput + "- " + "" + first + "" + " , " + "" + second + "" + "
";
- }
-
- evaluationOutput = evaluationOutput + "";
-
- } else if (code.contentEquals("P32")) {
-
- NodeIterator elements = ind.listPropertyValues(haveSameLabel);
-
- evaluationOutput = evaluationOutput + "";
-
- while (elements.hasNext()) {
- String uri = elements.next().asResource().getURI();
- Individual indi = model.getIndividual(uri);
-
- NodeIterator elementos = indi.listPropertyValues(hasAffectedElement);
- evaluationOutput = evaluationOutput + "- ";
- boolean primero = true;
- while (elementos.hasNext()) {
- String first = elementos.next().asLiteral().getString();
- if (!primero)
- evaluationOutput = evaluationOutput + " , ";
- evaluationOutput = evaluationOutput + ""
- + first + "";
- primero = false;
- }
- evaluationOutput = evaluationOutput + "
";
- }
-
- evaluationOutput = evaluationOutput + "";
-
- } else {
- NodeIterator elements = ind.listPropertyValues(hasAffectedElement);
-
- evaluationOutput = evaluationOutput + "";
-
- while (elements.hasNext()) {
- RDFNode nextNode = elements.next();
-
- if (nextNode.isLiteral()) {
- String element = nextNode.asLiteral().getString();
- evaluationOutput = evaluationOutput + "- " + "" + element + "" + "
";
- } else if (nextNode.isURIResource()) {
- System.out.println("Es un Resource in OOPSevaluation");
-
- } else {
- System.out.println("Can't act as Individual in OOPSevaluation");
- }
-
- }
- evaluationOutput = evaluationOutput + "
";
- }
- }
-
- evaluationOutput = evaluationOutput + "