Skip to content

RDFFramework not finding RML #27

@jermnelson

Description

@jermnelson

Trying to run python simple.py causes this error:

Traceback (most recent call last):
  File "simple.py", line 34, in <module>
    triplestore_url=app.config.get("TRIPLESTORE_URL"))
  File "/home/jpnelson/2018/rdfframework/rdfframework/rml/processor.py", line 947, in __init__
    super(SPARQLProcessor, self).__init__(rml_rules, **kwargs)
  File "/home/jpnelson/2018/rdfframework/rdfframework/rml/processor.py", line 79, in __init__
    raw_rule = RML_MGR.get_rml(rule, 'data').decode()
  File "/home/jpnelson/2018/rdfframework/rdfframework/rml/rmlmanager.py", line 206, in get_rml
    raise LookupError("rml_name '%s' is not registered" % rml_name)
LookupError: rml_name '/usr/local/lib/python3.5/site-packages/bibcat/maps/bf-to-schema_rdfw.ttl' is not registered```

Fixed by hard coding path to `bf-to-schema_rdfw.ttl`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions