Graph Store Protocol commands¶
kurra.cli.commands.db.gsp ¶
exists_command ¶
exists_command(sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Checks to see if a graph exists within a database
Source code in kurra/cli/commands/db/gsp.py
get_command ¶
get_command(sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Gets the content of a database graph
Source code in kurra/cli/commands/db/gsp.py
put_command ¶
put_command(path: Path = typer.Argument(..., help='The path of a file or directory of files to be uploaded.'), sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Add content to a database graph. This will preserve all existing content. Use post() if you wish to remove existing content.
Source code in kurra/cli/commands/db/gsp.py
post_command ¶
post_command(path: Path = typer.Argument(..., help='The path of a file or directory of files to be uploaded.'), sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Add content to a database graph. This will remove all existing content. Use put() if you wish to preserve existing content.
Source code in kurra/cli/commands/db/gsp.py
delete_command ¶
delete_command(sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Deletes triples from a database graph
Source code in kurra/cli/commands/db/gsp.py
clear_command ¶
clear_command(sparql_endpoint_url: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str = None, username: str = None, password: str = None, timeout: int = 60)
Clears - removes all triples from - a database graph
Source code in kurra/cli/commands/db/gsp.py
upload_command ¶
upload_command(path: Path = typer.Argument(..., help='The path of a file or directory of files to be uploaded.'), sparql_endpoint: str = typer.Argument(..., help='SPARQL Endpoint URL. E.g. http://localhost:3030/ds'), graph_identifier: str | None = None, username: str = None, password: str = None, timeout: int = 60, disable_ssl_verification: bool = False, host_header: str | None = None) -> None
Upload a file or a directory of files with an RDF file extension.
File extensions: [.nt, .nq, .ttl, .trig, .json, .jsonld, .xml]
Files are uploaded into their own named graph in the format:
Source code in kurra/cli/commands/db/gsp.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 | |