From 886cd4d0479eb19fc0c1af9ac49af104f3be3abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Sun, 8 Feb 2009 14:27:10 +0000 Subject: [PATCH] - added Metadata in the Ontology comments part --- .../align/impl/renderer/OWLAxiomsRendererVisitor.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java index 5bfcda1e..791ef603 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA Rhône-Alpes, 2003-2004, 2007-2008 + * Copyright (C) INRIA, 2003-2004, 2007-2009 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -34,6 +34,7 @@ import org.semanticweb.owl.align.Cell; import org.semanticweb.owl.align.Relation; import fr.inrialpes.exmo.align.impl.ObjectAlignment; +import fr.inrialpes.exmo.align.impl.BasicParameters; import fr.inrialpes.exmo.align.onto.LoadedOntology; import fr.inrialpes.exmo.align.impl.rel.*; @@ -73,6 +74,11 @@ public class OWLAxiomsRendererVisitor implements AlignmentVisitor { writer.print(" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\">\n\n"); writer.print(" <owl:Ontology rdf:about=\"\">\n"); writer.print(" <rdfs:comment>Matched ontologies</rdfs:comment>\n"); + writer.print(" <rdfs:comment>Generated by fr.inrialpes.exmo.align.renderer.OWLAxiomsRendererVisitor</rdfs:comment>\n"); + for ( Object ext : ((BasicParameters)align.getExtensions()).getValues() ){ + String name = ((String[])ext)[1]; + writer.print(" <rdfs:comment>"+name+": "+((String[])ext)[2]+"</rdfs:comment>\n"); + } writer.print(" <owl:imports rdf:resource=\""+align.getOntology1URI().toString()+"\"/>\n"); writer.print(" <owl:imports rdf:resource=\""+align.getOntology2URI().toString()+"\"/>\n"); writer.print(" </owl:Ontology>\n\n"); -- GitLab