Skip to content
Snippets Groups Projects
Commit c4540ed8 authored by Romin's avatar Romin :eye:
Browse files

add docstring

parent db4ac5a7
No related branches found
No related tags found
No related merge requests found
...@@ -688,6 +688,13 @@ class QueryResult: ...@@ -688,6 +688,13 @@ class QueryResult:
Computes the union between a list of files, a file (coscine.FileObject) Computes the union between a list of files, a file (coscine.FileObject)
property and the property reflected in the SPARQL query result property and the property reflected in the SPARQL query result
identified via the column it appears in. identified via the column it appears in.
Example
-------
result = resource.query(r"SELECT ?path ?p ?o WHERE { ?path ?p ?o . }")
files = resource.files(recursive=True)
for f in result.union(files, coscine.FileObject.uri, "path"):
print(f.name)
""" """
result = [] result = []
column_index = self.headers.index(column) column_index = self.headers.index(column)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment