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

Add search by SPARQL query #2

Open
bgajdero opened this issue Sep 19, 2023 · 0 comments
Open

Add search by SPARQL query #2

bgajdero opened this issue Sep 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bgajdero
Copy link
Contributor

Add functionality to search by query:

query = """
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX nm <http//name.space>
SELECT * WHERE {
?s rdf:type nm:MyClass
}
"""

Two options:
res_dict = SPARQLDictClass.search(query=query)
Make sure to convert query results into SPARQLDict objects.

res_objects = MyClass.search(query=query)
Make sure to convert SPARQLDict objects to MyClass

@bgajdero bgajdero self-assigned this Sep 19, 2023
@bgajdero bgajdero changed the title Add search by SPRQL query Add search by SPARQL query Sep 28, 2023
@bgajdero bgajdero added the enhancement New feature or request label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant