diff --git a/404.html b/404.html new file mode 100644 index 0000000..2e5cbb8 --- /dev/null +++ b/404.html @@ -0,0 +1,28 @@ + + +
+ + + + + + + + +{definition}
\n", + "\n", + " Documentation at {label}.\n", + " Other versions:\n", + "
\n", + " \n", + "\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [], + "source": [ + "def generate_resource(subject: rdflib.URIRef):\n", + " name = str(subject).split(\"/\")[-1]\n", + " resource_graph = rdflib.ConjunctiveGraph()\n", + " resource_graph.parse(data=rdf_template)\n", + " resource_path = ontology_path/name\n", + " resource_path.mkdir(exist_ok=True)\n", + " label = pmo.value(subject=subject, predicate=rdflib.RDFS.label)\n", + " if label is None:\n", + " label = name\n", + " definition = pmo.value(subject=subject, predicate=SKOS.definition)\n", + " raw_html = html_template.format(name=name, label=label, definition=definition)\n", + " index_path = resource_path/\"index.html\"\n", + " index_path.write_text(raw_html)\n", + " # Populate resource graph\n", + " for pred, obj in pmo.predicate_objects(subject=subject):\n", + " resource_graph.add((subject, pred, obj))\n", + " # Write RDF XML and Turtle serialization\n", + " rdf_path = resource_path/f\"{name}.rdf\"\n", + " rdf_path.write_bytes(resource_graph.serialize(format='xml'))\n", + " ttl_path = resource_path/f\"{name}.ttl\"\n", + " ttl_path.write_bytes(resource_graph.serialize(format='turtle'))\n", + " \n", + " \n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": {}, + "outputs": [], + "source": [ + "pmo.value(subject=rdflib.URIRef('http://performedmusicontology.org/ontology/Concert45'), predicate=rdflib.RDFS.label)" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "@prefix :Event in which a performer or actor is applying for a position in an ensemble, cast, film, etc.
++ Documentation at Audition. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/BenefitConcert/BenefitConcert.rdf b/ontology/BenefitConcert/BenefitConcert.rdf new file mode 100644 index 0000000..a80d14d --- /dev/null +++ b/ontology/BenefitConcert/BenefitConcert.rdf @@ -0,0 +1,12 @@ + +Concert held for charitable purposes, i.e., to raise funds or awareness
++ Documentation at BenefitConcert. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Ceremony/Ceremony.rdf b/ontology/Ceremony/Ceremony.rdf new file mode 100644 index 0000000..2a0a6d3 --- /dev/null +++ b/ontology/Ceremony/Ceremony.rdf @@ -0,0 +1,13 @@ + +Ritual event, performed on special occasions (e.g., death, baptism, wedding, graduation, equinox, coronation, victory)
++ Documentation at Ceremony. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/CommandPerformance/CommandPerformance.rdf b/ontology/CommandPerformance/CommandPerformance.rdf new file mode 100644 index 0000000..b946d5b --- /dev/null +++ b/ontology/CommandPerformance/CommandPerformance.rdf @@ -0,0 +1,13 @@ + +Concert or Performance done at the request of a monarch or other head of state.
++ Documentation at Command performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Concert/Concert.rdf b/ontology/Concert/Concert.rdf new file mode 100644 index 0000000..e9de39f --- /dev/null +++ b/ontology/Concert/Concert.rdf @@ -0,0 +1,13 @@ + +Live musical performance of one or more works in front of an audience or in a single recording session
++ Documentation at Concert. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/ConcertSeries/ConcertSeries.rdf b/ontology/ConcertSeries/ConcertSeries.rdf new file mode 100644 index 0000000..790d687 --- /dev/null +++ b/ontology/ConcertSeries/ConcertSeries.rdf @@ -0,0 +1,13 @@ + +Group of concerts in the same geographic area by a single performer or brought together by a common theme, usually available for sale as a package. e.g., an orchestra concert season, a series featuring chamber ensembles.
++ Documentation at Concert series. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/ConcertTour/ConcertTour.rdf b/ontology/ConcertTour/ConcertTour.rdf new file mode 100644 index 0000000..d9c0b8f --- /dev/null +++ b/ontology/ConcertTour/ConcertTour.rdf @@ -0,0 +1,13 @@ + +Series of concerts by a performer or group of performers in different cities, countries, or locations.
++ Documentation at Concert tour. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/DeclaredMedium/DeclaredMedium.rdf b/ontology/DeclaredMedium/DeclaredMedium.rdf new file mode 100644 index 0000000..e08364a --- /dev/null +++ b/ontology/DeclaredMedium/DeclaredMedium.rdf @@ -0,0 +1,12 @@ + +Intended overall medium of performance of a musical work, as declared by the composer, a reference source, or other source.
++ Documentation at Declared medium. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/DiscCutting/DiscCutting.rdf b/ontology/DiscCutting/DiscCutting.rdf new file mode 100644 index 0000000..f4b2631 --- /dev/null +++ b/ontology/DiscCutting/DiscCutting.rdf @@ -0,0 +1,13 @@ + +Recording process in which a stylus cuts a vertical or lateral groove into an audio disc.
++ Documentation at Disc cutting process. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Discogs/Discogs.rdf b/ontology/Discogs/Discogs.rdf new file mode 100644 index 0000000..2919ddb --- /dev/null +++ b/ontology/Discogs/Discogs.rdf @@ -0,0 +1,13 @@ + +Identifier from Discogs.
++ Documentation at Discogs ID. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/DramaticRole/DramaticRole.rdf b/ontology/DramaticRole/DramaticRole.rdf new file mode 100644 index 0000000..5058162 --- /dev/null +++ b/ontology/DramaticRole/DramaticRole.rdf @@ -0,0 +1,13 @@ + +Character of a performer in a dramatic work, such as an opera or play, as realized in a sound recording, a video, in text, etc.
++ Documentation at Dramatic role. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/EnsembleMediumOfPerformance/EnsembleMediumOfPerformance.rdf b/ontology/EnsembleMediumOfPerformance/EnsembleMediumOfPerformance.rdf new file mode 100644 index 0000000..0b239bc --- /dev/null +++ b/ontology/EnsembleMediumOfPerformance/EnsembleMediumOfPerformance.rdf @@ -0,0 +1,14 @@ + +Named group of like or unlike mediums of performance intended to be played by multiple performers.
++ Documentation at Ensemble type. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/EventName/EventName.rdf b/ontology/EventName/EventName.rdf new file mode 100644 index 0000000..dfafe1b --- /dev/null +++ b/ontology/EventName/EventName.rdf @@ -0,0 +1,12 @@ + +Name given to an event.
++ Documentation at Event name. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/FirstPerformance/FirstPerformance.rdf b/ontology/FirstPerformance/FirstPerformance.rdf new file mode 100644 index 0000000..39673f4 --- /dev/null +++ b/ontology/FirstPerformance/FirstPerformance.rdf @@ -0,0 +1,13 @@ + +The first known performance of a work.
++ Documentation at First performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/IndividualMediumOfPerformance/IndividualMediumOfPerformance.rdf b/ontology/IndividualMediumOfPerformance/IndividualMediumOfPerformance.rdf new file mode 100644 index 0000000..667bb18 --- /dev/null +++ b/ontology/IndividualMediumOfPerformance/IndividualMediumOfPerformance.rdf @@ -0,0 +1,13 @@ + +None
++ Documentation at Individual medium of performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/KeyMode/KeyMode.rdf b/ontology/KeyMode/KeyMode.rdf new file mode 100644 index 0000000..f331290 --- /dev/null +++ b/ontology/KeyMode/KeyMode.rdf @@ -0,0 +1,13 @@ + +Key and mode of a music work when used in combination.
++ Documentation at Music key and mode. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/LivePerformance/LivePerformance.rdf b/ontology/LivePerformance/LivePerformance.rdf new file mode 100644 index 0000000..9250563 --- /dev/null +++ b/ontology/LivePerformance/LivePerformance.rdf @@ -0,0 +1,13 @@ + +Live Performance that is recorded at a public event or in a single recording session.
++ Documentation at Live performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MasterClass/MasterClass.rdf b/ontology/MasterClass/MasterClass.rdf new file mode 100644 index 0000000..2e3862b --- /dev/null +++ b/ontology/MasterClass/MasterClass.rdf @@ -0,0 +1,13 @@ + +Event in which a recognized performer critiques the performances of one or more other performers.
++ Documentation at Master class. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MediumOfPerformance/MediumOfPerformance.rdf b/ontology/MediumOfPerformance/MediumOfPerformance.rdf new file mode 100644 index 0000000..276d773 --- /dev/null +++ b/ontology/MediumOfPerformance/MediumOfPerformance.rdf @@ -0,0 +1,12 @@ + +Instruments, voices, ensembles, choruses, and other participants (actors, dancers, etc.) required for, or performing in, an event or work, including electronics, computers, installations, etc.
++ Documentation at Medium of performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MediumPart/MediumPart.rdf b/ontology/MediumPart/MediumPart.rdf new file mode 100644 index 0000000..d24784b --- /dev/null +++ b/ontology/MediumPart/MediumPart.rdf @@ -0,0 +1,14 @@ + +Medium of performance, type, etc., of a specific part of the declared or performed medium.
++ Documentation at Medium part. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MediumPartType/MediumPartType.rdf b/ontology/MediumPartType/MediumPartType.rdf new file mode 100644 index 0000000..76123c9 --- /dev/null +++ b/ontology/MediumPartType/MediumPartType.rdf @@ -0,0 +1,14 @@ + +Specific role or type of a medium part
++ Documentation at Part type. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Mode/Mode.rdf b/ontology/Mode/Mode.rdf new file mode 100644 index 0000000..b09dc39 --- /dev/null +++ b/ontology/Mode/Mode.rdf @@ -0,0 +1,13 @@ + +Musical mode of a music work.
++ Documentation at Music mode. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MusicBrainz/MusicBrainz.rdf b/ontology/MusicBrainz/MusicBrainz.rdf new file mode 100644 index 0000000..ec2a89d --- /dev/null +++ b/ontology/MusicBrainz/MusicBrainz.rdf @@ -0,0 +1,13 @@ + +Identifier from MusicBrainz
++ Documentation at MusicBrainz ID. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/MusicPart/MusicPart.rdf b/ontology/MusicPart/MusicPart.rdf new file mode 100644 index 0000000..2d718fc --- /dev/null +++ b/ontology/MusicPart/MusicPart.rdf @@ -0,0 +1,13 @@ + +Specific element within an overall declared or performed medium, e.g., Violin 1, Trumpet 2.
++ Documentation at Music part. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/OpenMicPerformance/OpenMicPerformance.rdf b/ontology/OpenMicPerformance/OpenMicPerformance.rdf new file mode 100644 index 0000000..1ef966f --- /dev/null +++ b/ontology/OpenMicPerformance/OpenMicPerformance.rdf @@ -0,0 +1,13 @@ + +Live performance at a coffee house, night club, or other venue by amateur performers.
++ Documentation at Open mic performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/OpusNumber/OpusNumber.rdf b/ontology/OpusNumber/OpusNumber.rdf new file mode 100644 index 0000000..49e48e5 --- /dev/null +++ b/ontology/OpusNumber/OpusNumber.rdf @@ -0,0 +1,14 @@ + +Primary opus number for a musical work.
++ Documentation at Opus number. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/OpusNumberPart/OpusNumberPart.rdf b/ontology/OpusNumberPart/OpusNumberPart.rdf new file mode 100644 index 0000000..00b56bf --- /dev/null +++ b/ontology/OpusNumberPart/OpusNumberPart.rdf @@ -0,0 +1,14 @@ + +Number for a portion of an opus number.
++ Documentation at Opus number part. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/OpusNumberStatement/OpusNumberStatement.rdf b/ontology/OpusNumberStatement/OpusNumberStatement.rdf new file mode 100644 index 0000000..ee35e4a --- /dev/null +++ b/ontology/OpusNumberStatement/OpusNumberStatement.rdf @@ -0,0 +1,14 @@ + +Statement about the opus number for a musical work.
++ Documentation at Opus number statement. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Performance/Performance.rdf b/ontology/Performance/Performance.rdf new file mode 100644 index 0000000..2ae72aa --- /dev/null +++ b/ontology/Performance/Performance.rdf @@ -0,0 +1,14 @@ + +Event in which a performer or group of performers perform an improvisation or pre-existing work to an audience or in a recording studio.
++ Documentation at Performance. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/PerformedMedium/PerformedMedium.rdf b/ontology/PerformedMedium/PerformedMedium.rdf new file mode 100644 index 0000000..4adfe23 --- /dev/null +++ b/ontology/PerformedMedium/PerformedMedium.rdf @@ -0,0 +1,12 @@ + +The overall medium of performance used in the performance of a musical work. This may or may not be the same as the declared medium of performance.
++ Documentation at Performed medium. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/RecordingSession/RecordingSession.rdf b/ontology/RecordingSession/RecordingSession.rdf new file mode 100644 index 0000000..8b221ab --- /dev/null +++ b/ontology/RecordingSession/RecordingSession.rdf @@ -0,0 +1,13 @@ + +Event in which one or more performances are recorded with the aim of producing a recording for issue.
++ Documentation at Recording session. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Rehearsal/Rehearsal.rdf b/ontology/Rehearsal/Rehearsal.rdf new file mode 100644 index 0000000..c624c30 --- /dev/null +++ b/ontology/Rehearsal/Rehearsal.rdf @@ -0,0 +1,13 @@ + +Event in which a performer or group of performers prepare for a performance.
++ Documentation at Rehearsal. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/RismNumber/RismNumber.rdf b/ontology/RismNumber/RismNumber.rdf new file mode 100644 index 0000000..1b11283 --- /dev/null +++ b/ontology/RismNumber/RismNumber.rdf @@ -0,0 +1,13 @@ + +Number from the Repertoire Internationale des Sources Musicales (RISM) online version.
++ Documentation at RISM number. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/Tempo/Tempo.rdf b/ontology/Tempo/Tempo.rdf new file mode 100644 index 0000000..1b5ad37 --- /dev/null +++ b/ontology/Tempo/Tempo.rdf @@ -0,0 +1,12 @@ + +The speed or pace of a music work, whether declared (in a score) or performed.
++ Documentation at Tempo. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/ThematicCatalogNumber/ThematicCatalogNumber.rdf b/ontology/ThematicCatalogNumber/ThematicCatalogNumber.rdf new file mode 100644 index 0000000..b0d34d2 --- /dev/null +++ b/ontology/ThematicCatalogNumber/ThematicCatalogNumber.rdf @@ -0,0 +1,14 @@ + +Numeric or alphanumeric designation of a musical work as found in a thematic index for the composer (without the identifying prefix).
++ Documentation at Thematic catalog number. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/ThematicCatalogPrefix/ThematicCatalogPrefix.rdf b/ontology/ThematicCatalogPrefix/ThematicCatalogPrefix.rdf new file mode 100644 index 0000000..8f88d52 --- /dev/null +++ b/ontology/ThematicCatalogPrefix/ThematicCatalogPrefix.rdf @@ -0,0 +1,14 @@ + +Prefix assigned to a thematic catalog number denoting thework from which the number originated.
++ Documentation at Thematic catalog prefix. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/ThematicCatalogStatement/ThematicCatalogStatement.rdf b/ontology/ThematicCatalogStatement/ThematicCatalogStatement.rdf new file mode 100644 index 0000000..68c00f8 --- /dev/null +++ b/ontology/ThematicCatalogStatement/ThematicCatalogStatement.rdf @@ -0,0 +1,14 @@ + +Statement about the thematic catalog number for a musical work, including both the prefix and the numeric or alphanumeric parts.
++ Documentation at Thematic catalog number statement. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/TonalCenter/TonalCenter.rdf b/ontology/TonalCenter/TonalCenter.rdf new file mode 100644 index 0000000..6fb80f1 --- /dev/null +++ b/ontology/TonalCenter/TonalCenter.rdf @@ -0,0 +1,13 @@ + +The tonal center of a music work, without mode
++ Documentation at Tonal center. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/VideogamePlatformIdentifier/VideogamePlatformIdentifier.rdf b/ontology/VideogamePlatformIdentifier/VideogamePlatformIdentifier.rdf new file mode 100644 index 0000000..5979ff5 --- /dev/null +++ b/ontology/VideogamePlatformIdentifier/VideogamePlatformIdentifier.rdf @@ -0,0 +1,14 @@ + +Identifier assigned to a video game platform.
++ Documentation at Videogame platform identifier. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/WorkComponent/WorkComponent.rdf b/ontology/WorkComponent/WorkComponent.rdf new file mode 100644 index 0000000..cbe9105 --- /dev/null +++ b/ontology/WorkComponent/WorkComponent.rdf @@ -0,0 +1,14 @@ + +A work that is an integral part of another work, even when separated from it
++ Documentation at Work component. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/aggregatedIn/aggregatedIn.rdf b/ontology/aggregatedIn/aggregatedIn.rdf new file mode 100644 index 0000000..1606a98 --- /dev/null +++ b/ontology/aggregatedIn/aggregatedIn.rdf @@ -0,0 +1,12 @@ + +Property connecting an individual aggregated Instance to the Instance in which it is aggregated.
++ Documentation at aggregatedIn. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/aggregates/aggregates.rdf b/ontology/aggregates/aggregates.rdf new file mode 100644 index 0000000..7859d9d --- /dev/null +++ b/ontology/aggregates/aggregates.rdf @@ -0,0 +1,12 @@ + +Property connecting an aggregating instance to an individual instance that it aggregates.
++ Documentation at aggregates. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/asMemberOf/asMemberOf.rdf b/ontology/asMemberOf/asMemberOf.rdf new file mode 100644 index 0000000..83cd045 --- /dev/null +++ b/ontology/asMemberOf/asMemberOf.rdf @@ -0,0 +1,13 @@ + +Organization through which a person makes a contribution to a work or instance.
++ Documentation at as Member of. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/associatedWith/associatedWith.rdf b/ontology/associatedWith/associatedWith.rdf new file mode 100644 index 0000000..0463473 --- /dev/null +++ b/ontology/associatedWith/associatedWith.rdf @@ -0,0 +1,15 @@ + +Event or Work that is associated in a general way with another event or work, instance or item.
++ Documentation at associated with. + Other versions: +
+ + + \ No newline at end of file diff --git a/ontology/composedOf/composedOf.rdf b/ontology/composedOf/composedOf.rdf new file mode 100644 index 0000000..7acf98f --- /dev/null +++ b/ontology/composedOf/composedOf.rdf @@ -0,0 +1,13 @@ + +