Skip to content

Commit

Permalink
Fix for #26
Browse files Browse the repository at this point in the history
Fix for #26
  • Loading branch information
tviegut committed Feb 22, 2024
1 parent b27efcf commit bb1e965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(), //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()));
Expand Down Expand Up @@ -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") //
};

Expand Down

0 comments on commit bb1e965

Please sign in to comment.