From bb1e9654a8a3397767af4f93cfba8b3a19c52b15 Mon Sep 17 00:00:00 2001 From: Todd Viegut Date: Wed, 21 Feb 2024 21:56:16 -0600 Subject: [PATCH] Fix for #26 Fix for #26 --- .../src/au/com/langdale/cimtoole/builder/CIMBuilder.java | 5 ++--- .../au/com/langdale/cimtoole/builder/ProfileBuildlets.java | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/CIMBuilder.java b/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/CIMBuilder.java index f45901b2..6c3f5e66 100644 --- a/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/CIMBuilder.java +++ b/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/CIMBuilder.java @@ -25,7 +25,6 @@ import au.com.langdale.cimtoole.builder.ConsistencyChecks.ProfileChecker; import au.com.langdale.cimtoole.builder.ProfileBuildlets.CopyBuildlet; -import au.com.langdale.cimtoole.builder.ProfileBuildlets.LegacyRDFSBuildlet; import au.com.langdale.cimtoole.builder.ProfileBuildlets.ProfileBuildlet; import au.com.langdale.cimtoole.builder.ProfileBuildlets.SimpleOWLBuildlet; import au.com.langdale.cimtoole.builder.ProfileBuildlets.TransformBuildlet; @@ -55,10 +54,10 @@ public Buildlet[] createBuildlets() { new TransformBuildlet(null, "xml"), // new SimpleOWLBuildlet(Format.RDF_XML.toFormat(), "simple-flat-owl", false), // new SimpleOWLBuildlet(Format.RDF_XML_ABBREV.toFormat(), "simple-owl", false), // - new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs", false), // + //new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs", false), // Replaced by an XSLT equivalent new SimpleOWLBuildlet(Format.RDF_XML.toFormat(), "simple-flat-owl-augmented", true), // new SimpleOWLBuildlet(Format.RDF_XML_ABBREV.toFormat(), "simple-owl-augmented", true), // - new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs-augmented", true), // + //new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs-augmented", true), // Replaced by an XSLT equivalent new CopyBuildlet(Format.TURTLE.toFormat(), "ttl"), // new ValidationBuildlet(), // new SplitValidationBuildlet(), // diff --git a/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/ProfileBuildlets.java b/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/ProfileBuildlets.java index 8135aa1a..b1d79a87 100644 --- a/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/ProfileBuildlets.java +++ b/CIMToolPlugin/src/au/com/langdale/cimtoole/builder/ProfileBuildlets.java @@ -4,6 +4,7 @@ */ package au.com.langdale.cimtoole.builder; +import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Collection; @@ -205,6 +206,7 @@ protected void build(IFile result, IProgressMonitor monitor) throws CoreExceptio ProfileSerializer serializer = new ProfileSerializer(tree); try { serializer.setBaseURI(tree.getNamespace()); + serializer.setOntologyURI(tree.getOntologyNamespace()); // Set available copyright headers for use during profile generation. serializer.setCopyrightMultiLine(Info.getMultiLineCopyrightText(file.getProject())); @@ -448,10 +450,10 @@ private static ProfileBuildlet[] getAvailable() { new TransformBuildlet(null, "xml"), // new SimpleOWLBuildlet(Format.RDF_XML.toFormat(), "simple-flat-owl", false), // new SimpleOWLBuildlet(Format.RDF_XML_ABBREV.toFormat(), "simple-owl", false), // - new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs", false), // + //new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs", false), // Replaced by an XSLT equivalent new SimpleOWLBuildlet(Format.RDF_XML.toFormat(), "simple-flat-owl-augmented", true), // new SimpleOWLBuildlet(Format.RDF_XML_ABBREV.toFormat(), "simple-owl-augmented", true), // - new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs-augmented", true), // + //new LegacyRDFSBuildlet(Format.RDF_XML.toFormat(), "legacy-rdfs-augmented", true), // Replaced by an XSLT equivalent new CopyBuildlet(Format.TURTLE.toFormat(), "ttl") // };