这是indexloc提供的服务,不要输入任何密码
Skip to content

feature request: script for querying through local data files via sparql #3280

@WhiteGobo

Description

@WhiteGobo

From time to time I need a script to query through local files with sparql. It would make it easier for me, if there is a script delivered with rdflib.

Any thoughts on this? are there others that could use such a script?
If there isnt any interest for that here, i think i will just create an extra package on my own for that.

example usage:

>>> local-sparql-query "SELECT ?x WHERE (?x a <http://example.com/MyClass>)" --rdffile myinfo.ttl --print "print('found solution: ', x)"
found solution: <http:example.com/PersonA>
found solution: <http:example.com/PersonB>

>>> local-sparql-query --rdffile myinfo.ttl --rdffile additional-info.tttl --queryfile cool-query.spl --only-first-result
{X: <http:example.com/PersonA>, name: "SomeName"}

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