Skip to content

schema parse problem #8

@goodb

Description

@goodb

The following schema causes a problem for the GenParser.parseSchema method.

BASE   <http://purl.obolibrary.org/obo/go/shapes/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX directly_provides_input_for: <http://purl.obolibrary.org/obo/RO_0002413>
PREFIX regulates: <http://purl.obolibrary.org/obo/RO_0002211>
PREFIX positively_regulates: <http://purl.obolibrary.org/obo/RO_0002213>

<s1> {
}

<s2> {
}

<MolecularFunction> {
  directly_provides_input_for: @<MolecularFunction> *;
  regulates: @<MolecularFunction> *;
  positively_regulates: @<MolecularFunction> *;
} // rdfs:comment  "A molecular function"

It is strange. If you take out either of the empty shapes (s1, s2) or if you take out one of the constraints on the MolecularFunction shape, it parses almost instantly. As it is, I have left it running for more than 5 minutes and watched the java memory usage spike up above 4GB.

I have extracted this minimal example from the real schema our group is working on here:
https://github.com/geneontology/go-shapes/blob/master/shapes/go-cam-shapes.shex

Help on this would be awesome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions