pyld get
↦
pyld get --help
Usage: pyld get [OPTIONS] [INPUT_]
Load and display a *-LD document.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ input_ [INPUT_] Path or URL. Omit to read from standard input. │
│ [default: None] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --base TEXT Base URL. [default: None] │
│ --output-format [json|yaml] Format to output the data at. │
│ [default: json] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
Example: From a local file
↦
pyld get docs/examples/pythagorean-theorem.yamlld
{
"@context": [
"https://json-ld.org/contexts/dollar-convenience.jsonld",
{
"prov": "http://www.w3.org/ns/prov#"
},
{
"variable": "https://variables.namespace/",
"=": "https://math.namespace/equal",
"+": "https://math.namespace/add",
"\u00b2": "https://math.namespace/squared"
}
],
"$id": "https://dbpedia.org/page/Pythagorean_theorem",
"prov:Entity": {
"=": [
{
"+": [
{
"\u00b2": "variable:a"
},
{
"\u00b2": "variable:b"
}
]
},
{
"\u00b2": "variable:c"
}
]
}
}
Example: From Web
↦
pyld get https://schema.org/isPartOf --output-format yaml
'@context':
brick: https://brickschema.org/schema/Brick#
csvw: http://www.w3.org/ns/csvw#
dc: http://purl.org/dc/elements/1.1/
dcam: http://purl.org/dc/dcam/
dcat: http://www.w3.org/ns/dcat#
dcmitype: http://purl.org/dc/dcmitype/
dcterms: http://purl.org/dc/terms/
doap: http://usefulinc.com/ns/doap#
foaf: http://xmlns.com/foaf/0.1/
odrl: http://www.w3.org/ns/odrl/2/
org: http://www.w3.org/ns/org#
owl: http://www.w3.org/2002/07/owl#
prof: http://www.w3.org/ns/dx/prof/
prov: http://www.w3.org/ns/prov#
qb: http://purl.org/linked-data/cube#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
schema: https://schema.org/
sh: http://www.w3.org/ns/shacl#
skos: http://www.w3.org/2004/02/skos/core#
sosa: http://www.w3.org/ns/sosa/
ssn: http://www.w3.org/ns/ssn/
time: http://www.w3.org/2006/time#
vann: http://purl.org/vocab/vann/
void: http://rdfs.org/ns/void#
xsd: http://www.w3.org/2001/XMLSchema#
'@id': schema:isPartOf
'@type': rdf:Property
rdfs:comment: Indicates an item or CreativeWork that this item, or CreativeWork
some sense), is part of.
rdfs:label: isPartOf
schema:domainIncludes:
'@id': schema:CreativeWork
schema:inverseOf:
'@id': schema:hasPart
schema:rangeIncludes:
- '@id': schema:CreativeWork
- '@id': schema:URL