mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
Add funkwhale namespace
This commit is contained in:
parent
cf8c5476e6
commit
1fc5740696
1 changed files with 34 additions and 0 deletions
34
core/ld.py
34
core/ld.py
|
@ -372,6 +372,40 @@ schemas = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"funkwhale.audio/ns": {
|
||||||
|
"contentType": "application/ld+json",
|
||||||
|
"documentUrl": "http://funkwhale.audio/ns",
|
||||||
|
"contextUrl": None,
|
||||||
|
"document": {
|
||||||
|
"@context": {
|
||||||
|
"id": "@id",
|
||||||
|
"type": "@type",
|
||||||
|
"as": "https://www.w3.org/ns/activitystreams#",
|
||||||
|
"schema": "http://schema.org#",
|
||||||
|
"fw": "https://funkwhale.audio/ns#",
|
||||||
|
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
||||||
|
"Album": "fw:Album",
|
||||||
|
"Track": "fw:Track",
|
||||||
|
"Artist": "fw:Artist",
|
||||||
|
"Library": "fw:Library",
|
||||||
|
"bitrate": {"@id": "fw:bitrate", "@type": "xsd:nonNegativeInteger"},
|
||||||
|
"size": {"@id": "fw:size", "@type": "xsd:nonNegativeInteger"},
|
||||||
|
"position": {"@id": "fw:position", "@type": "xsd:nonNegativeInteger"},
|
||||||
|
"disc": {"@id": "fw:disc", "@type": "xsd:nonNegativeInteger"},
|
||||||
|
"library": {"@id": "fw:library", "@type": "@id"},
|
||||||
|
"track": {"@id": "fw:track", "@type": "@id"},
|
||||||
|
"cover": {"@id": "fw:cover", "@type": "as:Link"},
|
||||||
|
"album": {"@id": "fw:album", "@type": "@id"},
|
||||||
|
"artists": {"@id": "fw:artists", "@type": "@id", "@container": "@list"},
|
||||||
|
"released": {"@id": "fw:released", "@type": "xsd:date"},
|
||||||
|
"musicbrainzId": "fw:musicbrainzId",
|
||||||
|
"license": {"@id": "fw:license", "@type": "@id"},
|
||||||
|
"copyright": "fw:copyright",
|
||||||
|
"category": "sc:category",
|
||||||
|
"language": "sc:inLanguage",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
|
DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
|
||||||
|
|
Loading…
Reference in a new issue