Are there any tools for PMML linting/validation? - pmml

I've written sections of PMML files on my own and would like to make sure the formatting is correct. Are there any tools that can help with validating the formatting, similar to how there are JSON lint and XML lint tools.

PMML is an XML dialect, so you should be able to use XML lint tools for the job.

Related

Is it possible to generate an OpenAPI YAML file from annotated source files via openapi-generator-maven-plugin

Is it possible to generate an OpenAPI YAML file from annotated source files via the openapi-generator-maven-plugin and the generator openapi-yaml?
The Maven plugin as well as CLI tool require an input-spec and only generate from that, not from soruce files. I've searched the (sadly sparse :() documentation and so far found nothing.
Additionally, if this isn't possible (which is likely I guess), is there any other possibility? This project is sadly non-Spring so using springdoc is no alternative.
Thanks!

download scowl in Lunix using command line

I have to manipulate my OWL file with Scala language. therefore, I found that scowl: https://github.com/phenoscape/scowl facilitates this task. I'm working with Lunix and Virtual Machine.
my questions are:
how to download scowl in Lunix with command line?
how to upload my owl file from github in Lunix?
Thanks in advance
I am the author of Scowl. It is meant to be used as a library in your Scala application. So you would add it as a dependency in your build file, whether you are using SBT or Maven or something else. It's available from Maven Central, and instructions are in the Scowl readme. I'm not sure what you mean by uploading your OWL file. Scowl provides a domain-specific language in Scala to allow you to manipulate OWL axioms in a readable way.

Validating DITA in Eclipse

my team created a project in Frame Maker and we want to convert it to DITA (that will be edited with Frame Maker). The conversion is done with Mif2go. It is complicated step and the DITA files may contain incomplete information. I was suggested to validate them using Eclipse (Kepler).
The DITA version of the files is 1.1 (the default of Mif2Go). I was needed to copy the DITA library files to eclipse workspace in order to validate the XML (including, for example, bookmap.dtd, bookmap.mod, and more). However, I get many errors for theese files when I validate the workspace of eclipse. For example, in the file "metaDecl.mod", i get error for the line "!ELEMENT author (%words.cnt;)*".
The error says:
" A '(' character or an element type is required in the declaration of element type "author"."
I get this error for many DITA files and I don't understand why.
I will extremely appreciate any clue...
Hard to tell based on your question and without understanding the Mif2go conversion.
I'd start with ensuring you have the Web Tools Platform (www.eclipse.org/webtools) installed in Eclipse. This includes XML validation. You may also want to download the DITA-OT from https://github.com/dita-ot and unzip it to your Eclipse workspace folder and add it as a project.
I am using Eclipse to convert HTML to DITA and validation seems to work OK on my DITA files. It may also be that Mif2go is writing out some bad XML; that .mod file is part of the DITA-OT, so that's probably not the issue. Maybe you can try removing the offending line and trying to validate again.

How eclipse validates build.xml files?

Where can I find dtd, xsd or whatever, that eclipse uses to validate ant build.xml file?
EDIT:
Actually eclipse is validating build.ini for referential integrity and I am interested to know how is it doing so. Is it using schematron or there is some more elegant way to do it?
There seems to be no official dtd (this link provides information why not and how to create an incomplete version). If you google for ant.dtd you will find information on this topic and also a link to an unofficial work-in-progress version.
So there must be more eclipse magic (or whatever) in validating/parsing the build.xml - I unfortunately do not know about it.

How to automatically format drools files with Eclipse?

For our current project we have code formatting rules for java and xml files. Is there some way to configure Eclipse to format drools files (*.drl)?
As far as I know you can't. The current plugin doesn't format the DRL files. It can be a very good contribution to the project :)
Cheers