You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, SELECT, CONSTRUCT and INSERT are supported.
90
92
Usage:
91
93
92
-
>>> res = mapping.query('''
94
+
>>> df = mapping.query('''
93
95
... PREFIX ex:<http://example.net/ns#>
94
96
... SELECT ?obj1 ?obj2 WHERE {
95
97
... ?obj1 ex:hasObj ?obj2
96
98
... }''')
97
-
... print(res.df)
98
-
... print(res.types)
99
+
... print(df)
99
100
100
101
:param query: The SPARQL query string
101
102
:param parameters: PVALUES Parameters, a DataFrame containing the value bindings in the custom PVALUES construction.
103
+
:param multi_as_strings: Columns with multiple types are by default converted to their string representations, set to False to get the native Polars types in a struct.
104
+
:param include_datatypes: Datatypes are not returned by default, set to true to return a dict with the solution mappings and the datatypes.
102
105
:return: DataFrame (Select), list of DataFrames (Construct) containing results, or None for Insert-queries
0 commit comments