Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling SPARQLProcessor run throws a TypeError: get_all_item_data() #21

Open
jermnelson opened this issue Mar 19, 2018 · 1 comment
Open
Labels

Comments

@jermnelson
Copy link
Member

Attempted to test SPARQLProcessor from command-line Python:

>>> from rdfframework.rml.processor import SPARQLProcessor`
>>> mapv4_processor = SPARQLProcessor(`
	    ["bf-to-map4.ttl",`
	    "D:/2018/dpla-service-hub/profiles/map4.ttl"],`
	    triplestore_url=TRIPLESTORE_URL)`
>>> mapv4_processor.run(item=rdflib.URIRef("https://digitalcc.coloradocollege.edu/islandora/object/coccc:8473"),
>>>     instance=rdlfib.URIRef("https://plains2peaks.org/0e9fa0e8-0ba2-11e8-8277-005056c00008"))
Traceback (most recent call last):`
  File "", line 2, in `
    instance=instance)`
  File "d:\2018\rdfframework\rdfframework\rml\processor.py", line 935, in run
    debug=False)`
TypeError: get_all_item_data() missing 1 required positional argument: 'items'
@jermnelson jermnelson added the bug label Mar 19, 2018
@mstabile75
Copy link
Member

Fixed the call to get_all_item_data in the rml processor file. For a particular mapping the a paramaterization of the query may want to be cleaned depending on the data so that the results list doesn't balloon to large or data is missing.
kwargs 'filters' adds special filters and 'special_union' adds addtional method for adding more triples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants