-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use Parrot for local ontologies #24
Comments
Original comment by Carlos Tejo (Bitbucket: dayures, GitHub: dayures): This error raised due to unexpected mimetype format of a file. And when you are using the command line interface (CLI), the mimetype of a file is fixed by the operating system (OS) (usually, it is obtained using the file extension). So, probably, you need to change the mimetype associated with a file extension in the OS. As a tip, you can try with only one input file (.owl or .rifps) in order to catch the risky file. |
Original comment by Lavdim Halilaj (Bitbucket: lavdimi, GitHub: Unknown): Hi Carlos, thanks for your response. I also tried with: "java -jar parrot-jar-with-dependencies.jar -i CAx_M24_ontology.owl -o documentation-generated.html" and "java -jar parrot-jar-with-dependencies.jar -i steel-30.owl -o documentation-generated.html" but the error is the same. Thanks. |
Original comment by Lavdim Halilaj (Bitbucket: lavdimi, GitHub: Unknown): Thanks for your suggestions, I added the mimetype of extension in the OS, but still same error. |
Original comment by Lavdim Halilaj (Bitbucket: lavdimi, GitHub: Unknown): My OS is: lsb_release -a Java version: java -version I added mime type by editing: My mime.type file looks as below (sorry for putting all the text, but in order to make sure that I did it correct): ############################################################################### MIME media types and the extensions that represent them.The format of this file is a media type on the left and zero or morefilename extensions on the right. Programs using this file will mapfiles ending with those extensions to the associated type.This file is part of the "mime-support" package. Please report a bug usingthe "reportbug" command of the "reportbug" package if you would like newtypes or extensions to be added.The reason that all types are managed by the mime-support package insteadallowing individual packages to install types in much the same way as theyadd entries in to the mailcap file is so these types can be referenced byother programs (such as a web server) even if the specific support packagefor that type is not installed.Users can add their own types if they wish by creating a ".mime.types"file in their home directory. Definitions included there will takeprecedence over those listed here.############################################################################### application/activemessage audio/32kadpcm chemical/x-alchemy alc image/cgm inode/chardevice message/delivery-status model/iges igs iges multipart/alternative text/cache-manifest appcache video/3gpp 3gp x-conference/x-cooltalk ice x-epoc/x-sisx-app sisx |
Original comment by Carlos Tejo (Bitbucket: dayures, GitHub: dayures): Well, the mimetype for .owl files would be application/rdf+xml I think that you are not using OWL 2 XML |
Original comment by Lavdim Halilaj (Bitbucket: lavdimi, GitHub: Unknown): Hi Carlos, thanks a lot for quick response. I replaced based on your suggestions, but still same error. My mime type looks as below: ############################################################################### MIME media types and the extensions that represent them.The format of this file is a media type on the left and zero or morefilename extensions on the right. Programs using this file will mapfiles ending with those extensions to the associated type.This file is part of the "mime-support" package. Please report a bug usingthe "reportbug" command of the "reportbug" package if you would like newtypes or extensions to be added.The reason that all types are managed by the mime-support package insteadallowing individual packages to install types in much the same way as theyadd entries in to the mailcap file is so these types can be referenced byother programs (such as a web server) even if the specific support packagefor that type is not installed.Users can add their own types if they wish by creating a ".mime.types"file in their home directory. Definitions included there will takeprecedence over those listed here.############################################################################### application/activemessage audio/32kadpcm chemical/x-alchemy alc image/cgm inode/chardevice message/delivery-status model/iges igs iges multipart/alternative text/cache-manifest appcache video/3gpp 3gp x-conference/x-cooltalk ice x-epoc/x-sisx-app sisx |
Original comment by Dieter De Paepe (Bitbucket: DieterDePaepe, GitHub: DieterDePaepe): For future reference: this can be solved by creating a ".mime.types" file in the user directory. Details can be found here.
|
Originally reported by: Lavdim Halilaj (Bitbucket: lavdimi, GitHub: Unknown)
Hi,
I'm trying to generate documentation of local ontologies using parrot, but I'm receiving this error: ERROR: Unable to open mimetype application/octet-stream.
The command is:
java -jar parrot-jar-with-dependencies.jar -i CAx_M24_ontology.owl -i http://ontorule-project.eu/resources/m24dem/CAx_M24_rules_parrot.rifps -o documentation-generated.html -s http://idi.fundacionctic.org/semantica/parrot/style.css -b http://ontorule-project.eu/parrot/
The text was updated successfully, but these errors were encountered: