@@ -138,15 +138,16 @@ def to_property_graph(
138
138
an InvalidArgumentValue exception will be thrown.
139
139
140
140
If you would like to save data using `single` cardinality then you can postfix (single) to the column header and
141
- set use_header_cardinality=True (default). e.g. A column named `name(single)` will save the `name` property
142
- as single cardinality. You can disable this by setting by setting `use_header_cardinality=False`.
141
+ set ``use_header_cardinality=True`` (default).
142
+ e.g. A column named `name(single)` will save the `name` property as single cardinality.
143
+ You can disable this by setting ``use_header_cardinality=False``.
143
144
144
145
Parameters
145
146
----------
146
147
client: NeptuneClient
147
148
instance of the neptune client to use
148
149
df: pandas.DataFrame
149
- Pandas DataFrame https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
150
+ ` Pandas DataFrame < https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
150
151
batch_size: int
151
152
The number of rows to save at a time. Default 50
152
153
use_header_cardinality: bool
@@ -218,20 +219,25 @@ def to_rdf_graph(
218
219
219
220
Parameters
220
221
----------
221
- client (NeptuneClient) :
222
- instance of the neptune client to use
223
- df (pandas.DataFrame) :
224
- Pandas DataFrame https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
225
- batch_size (int) :
226
- The number of rows in the DataFrame (i.e. triples) to write into Amazon Neptune in one query. Defaults to 50
227
- subject_column (str, optional) :
228
- The column name in the DataFrame for the subject. Defaults to 's'
229
- predicate_column (str, optional) :
230
- The column name in the DataFrame for the predicate. Defaults to 'p'
231
- object_column (str, optional) :
232
- The column name in the DataFrame for the object. Defaults to 'o'
233
- graph_column (str, optional) :
234
- The column name in the DataFrame for the graph if sending across quads. Defaults to 'g'
222
+ client: NeptuneClient
223
+ Instance of the neptune client to use.
224
+ df: pandas.DataFrame
225
+ `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_.
226
+ batch_size: int
227
+ The number of rows in the DataFrame (i.e. triples) to write into Amazon Neptune in one query.
228
+ Defaults to 50.
229
+ subject_column: str, optional
230
+ The column name in the DataFrame for the subject.
231
+ Defaults to 's'.
232
+ predicate_column: str, optional
233
+ The column name in the DataFrame for the predicate.
234
+ Defaults to 'p'.
235
+ object_column: str, optional
236
+ The column name in the DataFrame for the object.
237
+ Defaults to 'o'.
238
+ graph_column: str, optional
239
+ The column name in the DataFrame for the graph if sending across quads.
240
+ Defaults to 'g'.
235
241
236
242
Returns
237
243
-------
0 commit comments