hsolbrig / PyShEx

ShEx interpreter for ShEx 2.0
Creative Commons Zero v1.0 Universal
25 stars 10 forks source link

Something not right with error reporting #30

Closed hsolbrig closed 5 years ago

hsolbrig commented 5 years ago

When we run the following query: shexeval -ss -sq zzz http://graphdb.dumontierlab.com/repositories/ncats-red-kg ~/git/biolink/biolink-model/shex/biolink-model.shex -ut

With zzz:

select ?item where{?item a <http://w3id.org/biolink/vocab/Protein>}
LIMIT 10

we get the following:

Errors:
  Focus: http://identifiers.org/uniprot/P00734
  Start: http://w3id.org/biolink/vocab/Protein
  Reason: ---> Testing http://identifiers.org/uniprot/P00734 against http://w3id.org/biolink/vocab/NamedThing
    2 triples exceeds max {0,1}

  Focus: http://identifiers.org/uniprot/P00533
  Start: http://w3id.org/biolink/vocab/Protein
  Reason: ---> Testing http://identifiers.org/uniprot/P00533 against http://w3id.org/biolink/vocab/NamedThing
    2 triples exceeds max {0,1}

  Focus: http://identifiers.org/uniprot/O75015
  Start: http://w3id.org/biolink/vocab/Protein
  Reason: ---> Testing http://identifiers.org/uniprot/O75015 against http://w3id.org/biolink/vocab/NamedThing
  ---> Testing http://w3id.org/biolink/vocab/Protein against XSD_string__List
      No matching triples found for predicate http://www.w3.org/1999/02/22-rdf-syntax-ns#rest

  Focus: http://identifiers.org/uniprot/P00736
  Start: http://w3id.org/biolink/vocab/GeneProduct
  Reason: Datatype constraint (http://www.w3.org/2001/XMLSchema#string) on URIRef URI http://identifiers.org/uniprot/P00736

  Focus: http://identifiers.org/uniprot/P00736
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P02745
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P02746
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P02747
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P08637
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P09871
  Start: http://w3id.org/biolink/vocab/Protein
  Reason:

  Focus: http://identifiers.org/uniprot/P12314
  Start: http://w3id.org/biolink/vocab/Protein
  Reason: ---> Testing http://identifiers.org/uniprot/P12314 against http://w3id.org/biolink/vocab/NamedThing
    2 triples exceeds max {0,1}

What is up with P000736 where there is no reason