Skip to content

support the configuration of multiple ontologies and shapes about the same namespace #30

Description

@elsdvlee

Use case: support selected RML modules with the original ontologies and shapes per module.

When adding all ontologies and shapes to one file, shapes validation and autocompletion works as expected.

{
        "ontologies": [
            "https://kg-construct.github.io/rml-resources/ontology.ttl"
        ],
        "shapes": [
            "https://kg-construct.github.io/rml-resources/shapes.ttl"
        ],
        "prefix_disabled": [
            "rml",
            "rml-",
            "rr",
            "r2rml",
            "fnml",
            "rmlt",
            "rmle"
        ],
        "completion": {
            "strict": [
                "http://w3id.org/rml/"
            ]
        }
    }

When adding the ontologies and shapes as an array of files, only one module seems supported.

{
        "ontologies": [
            "https://kg-construct.github.io/rml-core/ontology/documentation/ontology.ttl",
            "https://kg-construct.github.io/rml-io/ontology/documentation/ontology.ttl",
            "https://kg-construct.github.io/rml-cc/ontology/documentation/ontology.ttl",
            "https://kg-construct.github.io/rml-fnml/ontology/documentation/ontology.ttl",
            "https://kg-construct.github.io/rml-lv/ontology/documentation/ontology.ttl"
        ],
        "shapes": [
            "https://kg-construct.github.io/rml-core/shapes/core.ttl",
            "https://kg-construct.github.io/rml-io/shapes/io.ttl",
            "https://kg-construct.github.io/rml-cc/shapes/cc.ttl",
            "https://kg-construct.github.io/rml-fnml/shapes/fnml.ttl",
            "https://kg-construct.github.io/rml-lv/shapes/lv.ttl"
        ],
        "prefix_disabled": [
            "rml-",
            "rr",
            "r2rml",
            "fnml",
            "rmlt",
            "rmle", 
            "rml" 
        ],
        "completion": {
            "strict": [
                "http://w3id.org/rml/"
            ]
        }
    }

e.g.

  • no autosuggestions of rml:field when the subject is of class rml:LogicalView
  • no indication of missing constant, template, reference in rml:ObjectMap

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