Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Corese-command: Unwanted download of files during file conversion #134

@MaillPierre

Description

@MaillPierre

Conversion of a file using corese command tries to download any file object of the owl:imports property

Related to #126 .

Expected Behavior

Should take a given file and output the converted file

Current Behavior

The corese convert command tries to download a file that does not exist and returns errors including the content of web pages. Also, it generates new triples depending on the result of the importation.

Possible Solution

Deactivate importation of owl:imports for corese-command

Steps to Reproduce

  1. create a file "test.nt" with the following content:
# uses owl:imports to import the ontology from the web
<http://te.st> <http://www.w3.org/2002/07/owl#imports> <https://www.google.com/> .
  1. Use corese command with :
corese-command convert -i test.nt -r turtle
  1. The results of my tests is:
[Fatal Error] :1:3: The markup in the document preceding the root element must be well-formed.
15:57:49.133 [main] ERROR fr.inria.corese.core.load.CreateImpl - org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed.
@prefix owl: <http://www.w3.org/2002/07/owl#> .

<http://te.st> owl:imports <https://www.google.com/> .

[a <http://www.w3.org/ns/rdfa#Error> ;
  <http://www.w3.org/ns/rdfa#context> "The markup in the document preceding the root element must be well-formed. at 1:3"] .

Context (Environment)

Linux Fedora
Corese command installed by script on the 26/07/2023

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions