Rock in China - Semantic Approach
From Music-China Wiki
|
|
Classes
Every category is in general treated as a semantic class within Semantic Mediawiki. However NOT ALL categories are to be used as classes, due to the fact that a lot of categories have been implemented for convenience, out of historic reasons and for performance issues when calling certain functions.
As such ONLY the following CATEGORIES are to be seen as CLASSES:
| Category Name | Related Class | Default Form |
|---|---|---|
| Artist | http://dbpedia.org/ontology/Band http://purl.org/ontology/mo/MusicArtist |
Form:Add a New Artist |
| Foreign Artist | Form:Add a New Foreign Artist | |
| Records | http://dbpedia.org/ontology/Album http://www.freebase.com/schema/music/album |
Form:Add a New Record |
| Record Label | http://dbpedia.org/ontology/RecordLabel http://purl.org/ontology/mo/label |
Form:Add a New Record Label |
| Events (incl. Festivals) | http://dbpedia.org/ontology/Event | Form:Add a New Event |
| Venues | http://dbpedia.org/ontology/Theatre http://www.freebase.com/schema/music/performance_venue |
Form:Add a New Venue |
| Cities | http://dbpedia.org/ontology/City | Form:Add a New City |
| Articles | http://www.freebase.com/schema/common/document | Form:Add a New Article |
| Magazines | http://dbpedia.org/ontology/Magazine | Form:Add a New Magazine |
| Books | http://dbpedia.org/ontology/Book | Form:Add a New Book |
| Websites | http://dbpedia.org/ontology/Website | Form:Add a New Website |
| Instruments | http://purl.org/ontology/mo/Instrument | Form:Add a New Instrument |
| People | http://dbpedia.org/ontology/Person | Form:Add a New Person |
| Operas | http://dbpedia.org/ontology/Opera | Form:Add a New Opera |
| Opera Roles | http://www.freebase.com/schema/opera/opera_role | Form:Add a New Opera Role |
| Opera Characters | http://www.freebase.com/schema/opera/opera_character | Form:Add a New Opera Character |
| Opera Style | http://www.freebase.com/schema/opera/opera_genre | Form:Add a New Opera Style |
| Songs | http://purl.org/ontology/mo/MusicalExpression http://dbpedia.org/ontology/Song |
Form:Add a New Song |
| Genres | http://purl.org/ontology/mo/Genre
http://www.freebase.com/schema/music/genre |
Form:Add a New Genre |
In general, ALL categories that have a DEFAULT FORM for semantic data input and that have a SAMEAS statement towards a semantic class (e.g. music ontology, dbpedia, freebase, etc.), are to be used as SEMANTIC CLASSES.
Properties for each Class
Artist
Note: some people are persons AND artists at the same time. In order to distinguish it is important that TWO pages are being set up:
- NAME
- NAME (Person)
whereas the first concentrates on the artists being active under the scope of his NAME, the second page is to be about him/her as a person, i.e. including none-artist achievements. That could be e.g. filmography or producer or recorder, etc.
For artists the following properties are being proposed:
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| foaf:made | Page | For things made, e.g. on an artist page to be given to records | Live, see Property:Foaf:made |
| mo:Activity_start | String | For the start YEAR of an artist | Live, see Property:Mo:activity start |
| mo:Activity_ended | String | For the disbanding YEAR of an artist | Live, see Property:Mo:activity ended |
| mo:origin | Page | Restricted to Category:ArtistOrigin Pages (Cities, Countries & Provinces); describes the origin of a band, i.e. where they were formed. | Live, see Property:mo:origin |
| db:locationCity | Page | Restricted to Category:ArtistOrigin Pages (Cities, Countries & Provinces); place the band is active at the moment. | Live, see Property:db:locationCity |
| mo:genre | Page | form will be comma-separated input with restrictions. Specifying genre in history text. | Live, see Property:Mo:genre |
| foaf:name | String | English name of the band / artist | Live, see Property:Foaf:name |
| hasChinesename | String | Value for the Chinese characters name of an artist | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of an artist | Live, see Property:hasPinYinname |
| Image | Page | Value for the main photo / image / logo file of a band | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:bandMember | String | Description field for band members | Live, see Property:db:bandMember |
| db:formerBandMember | String | Description field for former band members | Live, see Property:db:formerBandMember |
| hasvideo | String | Field for the Youtube Video ID that is used for various previews | Live, see Property:Hasvideo |
| mo:free_download | URL | Value for a free download possibility of the song | Live, see Property:mo:free_download |
sameas:db:Band --> included via Category:Artist sameas linkage
Please note that it is extremely difficult to generate galliers with the inline queries #ask, see also http://www.mediawiki.org/wiki/Help_talk:Templates#Gallery_In_a_Template
Foreign Artist
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| originFB | String | Restricted to Category:ArtistOrigin Pages (Cities, Countries & Provinces); describes the origin of a band, i.e. where they were formed. | Live, see Property:originFB |
| genreFB | String | form will be comma-separated input with restrictions. Specifying genre in history text. | Live, see Property:genreFB |
| foaf:name | String | English name of the band / artist | Live, see Property:Foaf:name |
| Image | Page | Value for the main photo / image / logo file of a band | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| hasvideoFB | String | Field for the Youtube Video ID that is used for various previews | Live, see Property:HasvideoFB |
Records
For records the following properties are being proposed:
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| foaf:maker | Page | Contains the main artist of a band. In case of a compilation, "Various Artists" would have to be entered | Live, see Property:foaf:maker |
| Image | Page | Contains the cover of a record | Live, see Property:Image |
| ImageDescription | String | Contains a descriptive text for the Image, in case of need | Live, see Property:ImageDescription |
| mo:publisher | Page | Value contains link to Record Label page | Live, see Property:mo:publisher |
| db:title | String | Value for the ENGLISH title of the record | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of an record | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of an record | Live, see Property:hasPinYinname |
| releaseYear | String | The field for the YEAR of release | Live, see Property:releaseYear |
| db:releaseDate | Date | The exact date of release | Live, see Property:db:releaseDate |
| mo:media_type | String | Array string with restricted input to allow for various record types (CD, DVD, etc.) | Live, see Property:mo:media_type |
| Catalogue | String | Catalogue number of the record (mixed string with letters and special characters possible) | Live, see Property:Catalogue |
| db:originalLanguage | String | Array for various languages that the record is recorded in | Live, see Property:db:originalLanguage |
| ISRC | String | ISRC number | Live, see Property:ISRC |
| mo:track | String | Name of track | Live, see Property:mo:track |
| db:runtime | Quantity | Amount of MINUTES of a record (runtime) | Live, see Property:db:runtime |
| db:hasreview | URL | Link to external record review | Live, see Property:db:hasreview |
| db:totalDiscs | Number | Total amounts of disk in that record | Live, see Property:db:totalDiscs |
| db:totalTracks | Number | Total amounts of tracks in that record | Live, see Property:db:totalTracks |
| db:recordedIn | Page | Location page for recording place, will be restricted to Studios or ArtistOrigin pages | Live, see Property:db:recordedIn |
| hasvideo | String | Youtube ID, same as for artist above | Live, see Property:hasvideo |
Events (incl. Festivals)
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Contains a photo or image representing the festival | Live, see Property:Image |
| ImageDescription | String | Contains a descriptive text for the Image, in case of need | Live, see Property:ImageDescription |
| db:startDate | Date | Start time of the event | Live, see Property:db:startDate |
| db:endDate | Date | End time of the event | Live, see Property:db:endDate |
| db:participant | Page | Artists that participated in the event | Live, see Property:db:participant |
| db:title | String | Name of the event in English | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of the event | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the event | Live, see Property:hasPinYinname |
| Organizer | Page | Organizer of the event | Live, see Property:Organizer |
| EventLocation | Page | Location of the event | Live, see Property:event:place |
Festivals are the same as events, however have a longer duration and usually a more complex schedule (additional sections required).
Venues
For venues the following properties are being proposed:
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| db:locatedInArea | Page | Location of Venue, restricted to Category:City | Live, see Property:db:locatedInArea |
| GeoLocation | Geographical Coordinates | Exact location of venue | Live, see Property:GeoLocation |
| foaf:phone | Phone | Main telephone number of the venue | Live, see Property:Foaf:phone |
| db:address | String | Address field | Live, see Property:db:address |
| Image | Page | Image or logo of the venue | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:openingYear | String | Opening year of the venue | Live, see Property:db:openingYear |
| db:closingYear | String | Closing year of the venue | Live, see Property:db:closingYear |
Cities
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Contains a photo or image representing the city | Live, see Property:Image |
| ImageDescription | String | Contains a descriptive text for the Image, in case of need | Live, see Property:ImageDescription |
| hasChinesename | String | Value for the Chinese characters name of the city | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the city | Live, see Property:hasPinYinname |
| GeoLocation | Geographic Coordinates | Geographic Coordinates, same as Wikipedia | Live, see Property:GeoLocation |
| db:administrativeDistrict | Page | Value for the Province of the city | Live, see Property:db:administrativeDistrict |
For cities the following properties are being proposed:
- location
- same as owl - wikipedia / dbpedia
Articles
For articles the following properties are being proposed:
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| releaseYear | String | The field for the YEAR of publication | Live, see Property:releaseYear |
| db:releaseDate | Date | The exact date of publication | Live, see Property:db:releaseDate |
| db:title | String | The title of the article | Live, see Property:db:title |
| HasChinesename | String | The Chinese title of the article | Live, see Property:HasChinesename |
| HasPinYinname | String | The Pinyin title of the article | Live, see Property:HasPinYinname |
| db:Author | Page | The Author of the article | Live, see Property:db:author |
| dc:Publisher | Page | The publication in which the article appeared (e.g. Beijingdaze, Chicago post, etc.) | Live, see Property:dc:publisher |
| OriginalURL | URL | The actual link of the article | Live, see Property:OriginalURL |
| Focus | Page | An array for specifically discussed focus topics, such as bands, venues, festivals, etc. basically any other page within the wiki. | Live, see Property:focus |
| dc:abstract | Text | An abstract of the article | Live, see Property:dc:abstract |
| Keywords | String | To be used as tags | Live, see Property:Keywords |
For the subcategory of history related articles the following properties are being proposed:
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| mo:Activity_start | String | For the start YEAR of the history related activity, e.g. rock | Live, see Property:Mo:activity start |
| mo:Activity_ended | String | For the disbanding YEAR of the history related activity, e.g. rock | Live, see Property:Mo:activity ended |
Magazines
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| dc:publisher | Page | The publication (e.g. Painkiller, So Rock, etc.) | Live, see Property:dc:publisher |
| Issue | Number | The number of the issue (e.g. Nos. 45 or 345) | Live, see Property:Issue |
| releaseYear | String | The field for the YEAR of publication | Live, see Property:releaseYear |
| db:releaseDate | Date | The exact date of publication | Live, see Property:db:releaseDate |
| FrontCover | Page | File name for Front Cover | Live, see Property:FrontCover |
| BackCover | Page | File name for Back Cover | Live, see Property:BackCover |
| Focus | Page | An array for specifically discussed focus topics, such as bands, venues, festivals, etc. basically any other page within the wiki. | Live, see Property:focus |
| Keywords | String | To be used as tags | Live, see Property:Keywords |
| db:numberOfPages | Number | How many pages this magazine issue has | Live, see Property:db:numberOfPages |
Books
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| db:title | String | Name of the book in English | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of the book | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the book | Live, see Property:hasPinYinname |
| dc:publisher | Page | The publication (e.g. Painkiller, So Rock, etc.) | Live, see Property:dc:publisher |
| releaseYear | String | The field for the YEAR of publication | Live, see Property:releaseYear |
| db:releaseDate | Date | The exact date of publication | Live, see Property:db:releaseDate |
| db:isbn | String | The ISBN of the book | Live, see Property:db:isbn |
| db:nonFictionSubject | Page | The subject of the book, e.g. a band, a tour, a genre in China | Live, see Property:db:nonFictionSubject |
| db:Author | Page | The Author of the article | Live, see Property:db:author |
| dc:abstract | Text | An abstract of the article | Live, see Property:dc:abstract |
| db:numberOfPages | Number | How many pages this magazine issue has | Live, see Property:db:numberOfPages |
| Image | Page | Value for the main photo / image / logo file of a band | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:oclc | Number | Online Computer Library Center number | Live, see Property:db:oclc |
| mo:free_download | URL | Value for a free download possibility of the book. Even though this is a MO property, it is ok to use for MUSICAL books | Live, see Property:mo:free_download |
Websites
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| db:title | String | Name of the website in English | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of the website | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the website | Live, see Property:hasPinYinname |
| db:originalLanguage | String | Array for various languages that the website is written in | Live, see Property:db:originalLanguage |
| mo:Activity_start | String | For the start YEAR of a website | Live, see Property:Mo:activity start |
| mo:Activity_ended | String | For the YEAR the website stopped | Live, see Property:Mo:activity ended |
| OriginalURL | URL | The actual link of the website | Live, see Property:OriginalURL |
| dc:description | Text | A short description of the website | Live, see Property:dc:description |
| focus | Page | An overview of entities related to this website, e.g. Shanghai, Punk, Nova Heart, etc. | Live, see Property:focus |
| Image | Page | Screenshot of the website | Live, see Property:Image |
| ImageDescription | String | Description text for the screenshot, e.g. which date taken, etc. | Live, see Property:ImageDescription |
| db:title | String | Name of the instrument in English | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of the instrument | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the instrument | Live, see Property:hasPinYinname |
Instruments
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Photo or stylistic drawing of the instrument | Live, see Property:Image |
| ImageDescription | String | Description text for the photo or drawing | Live, see Property:ImageDescription |
| db:title | String | Name of the instrument in English | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of the instrument | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of the instrument | Live, see Property:hasPinYinname |
| InstrumentClassification | Page | Value for the classification of the musical instrument, following The Eight Sounds or Eight Tones | Live, see Property:InstrumentClassification |
| owl:sameAs | URL | Wikipedia Link | Live, see Property:sameas |
Person
Note: some people are persons AND artists at the same time. In order to distinguish it is important that TWO pages are being set up:
- NAME
- NAME (Person)
whereas the first concentrates on the artists being active under the scope of his NAME, the second page is to be about him/her as a person, i.e. including none-artist achievements. That could be e.g. filmography or producer or recorder, etc.
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Value for the main photo / image / logo file of PERSON | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| foaf:name | String | English name of the PERSON | Live, see Property:Foaf:name |
| hasChinesename | String | Value for the Chinese characters name of PERSON | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of PERSON | Live, see Property:hasPinYinname |
| db:field | Page | Value for the field of activity, i.e. Genre | Live, see Property:db:field |
| db:instrument | Page | Value for the instrument, the PERSON is using as part of an ARTIST | Live, see Property:db:instrument |
| db:voiceType | Page | Value for the voice type on a PERSON | Live, see Property:db:voiceType |
| db:birthDate | Date | Value for the birth date of a PERSON | Live, see Property:db:birthDate |
| db:birthPlace | Page | Value for the birth place of a PERSON | Live, see Property:db:birthPlace |
| db:deathDate | Date | Value for the death date of a PERSON | Live, see Property:db:deathDate |
| db:deathPlace | Page | Value for the birth place of a PERSON | Live, see Property:db:deathPlace |
| db:associatedAct | Page | Value for the ARTISTS the PERSON worked with (can also be something else, like an orchestra (ARTIST) OR an OPERA | Live, see Property:db:associatedAct |
Opera
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Value for the main photo / image / logo file of OPERA | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:title | String | English name of the Opera | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of Opera | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of Opera | Live, see Property:hasPinYinname |
| Mo:genre | Page | Field for the opera style of the OPERA | Live, see Property:mo:genre |
| hasvideo | String | Field for the Youtube Video ID that is used for various previews | Live, see Property:Hasvideo |
| dc:abstract | Text | An abstract of the article | Live, see Property:dc:abstract |
Opera Roles
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Value for the main photo / image / logo file of OPERA ROLE | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:title | String | English name of the Opera Role | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of Opera Role | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of Opera | Live, see Property:hasPinYinname |
| dc:description | Text | Description of the meaning of the role | Live, see Property:dc:description |
| AssociatedOperaStyle | Page | Associated Opera Styles for this particular role, e.g. Beijing Opera or Sichuan Opera | Live, see Property:AssociatedOperaStyle |
| Subroleof | Page | Associated Parent Opera Role for this particular role. | Live, see Property:Subroleof |
Opera Characters
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Value for the mask / face of the Opera Character | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| db:title | String | English name of the Opera Character | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of Opera Character | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of Opera Character | Live, see Property:hasPinYinname |
| dc:description | Text | Description of the meaning of the character | Live, see Property:dc:description |
| AssociatedOperaRole | Page | Associated Opera Roles for this particular role | Live, see Property:AssociatedOperaRole |
| AssociatedOperas | Page | Associated Operas for this particular role | Live, see Property:AssociatedOperas |
Opera Style
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Image | Page | Value for the main photo / image / logo file of PERSON | Live, see Property:Image |
| ImageDescription | String | Description text for the main photo | Live, see Property:ImageDescription |
| hasvideo | String | Field for the Youtube Video ID that is used for various previews | Live, see Property:Hasvideo |
| db:title | String | English name of the Opera | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of Opera | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of Opera | Live, see Property:hasPinYinname |
| owl:sameas | URL | Value for Wikipedia | Live, see Property:sameas |
Song
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| db:title | String | English name of the Song | Live, see Property:db:title |
| hasChinesename | String | Value for the Chinese characters name of Song | Live, see Property:hasChinesename |
| hasPinYinname | String | Value for the pinyin annotation of the Chinese name of Song | Live, see Property:hasPinYinname |
| Foaf:maker | Page | Value for artist / performer of the song | Live, see Property:foaf:maker |
| mo:genre | Page | Value for the genre of the song | Live, see Property:mo:genre |
| mo:lyrics | Text | Value for the lyrics of a song | Live, see Property:mo:lyrics |
| Hasvideo | String | Value for the YoutubeID of a song | Live, see Property:Hasvideo |
| SongCategory | Page | Value for classification of the song | Live, see Property:SongCategory |
| mo:free_download | URL | Value for a free download possibility of the song | Live, see Property:mo:free_download |
| db:instrument | Page | Value for the INSTRUMENTs used in the STANDARD ARRANGEMENT of a song | Live, see Property:db:instrument |
| Db:recordDate | Date | Value for a the date of RECORDING | Live, see Property:Db:recordDate |
| RecordYear | String | Value for a the year of RECORDING | Live, see Property:RecordYear |
| ReleaseYear | String | Value for a the year of RELEASE | Live, see Property:ReleaseYear |
| Db:releaseDate | Date | Value for a the date of RELEASE | Live, see Property:Db:releaseDate |
Genres
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| Subgenreof | Page | Refers to the main genre of a genre, e.g. post punk belongs to punk | Live, see Property:Subgenreof |
| Hasvideo | String | Value for the YoutubeID of an example song | Live, see Property:Hasvideo |
| dc:abstract | Text | Brief explanation on the genre | Live, see dc:abstract |
Templates
| Property | Type | Description | Implementation Status |
|---|---|---|---|
| dc:description | Text | Description of the template | Live, see Property:dc:description |
| TemplateCode | Text | Call Code of the Template | Live, see Property:TemplateCode |
References - REMOVED
It is the idea to make use off the existing "cite web" templates by using the following Properties:
- author --> Property:Hasreferenceauthor
- title --> Property:Hasreferencetitle
- URL --> Property:HasreferenceURL
- date --> Property:Hasreferencedate
- accessdate --> Property:Hasreferenceaccessdate
These properties and its embedding in the cite template have been removed, as they were not usable.
Further implementations classes & properties
- Tours (as extension of Events)
- Additional category, additional properties
- Movies
- Publish Date
- IMDB Link (sameas)
- Wikipedia Link (sameas)
- Bandsmentions
- Thesis (sub of Doc, parent of article?)
- Podcasts
Ontologies Used
| Ontology Name | Further information | Import Page on RiC Wiki |
|---|---|---|
| Friend of a Friend | FOAF | Mediawiki:smw_import_foaf |
| Music Ontology | MO | Mediawiki:smw_import_mo |
| Event Ontology | EVENT | Mediawiki:smw_import_event |
| DBPedia Ontology | dbPedia | Mediawiki:smw_import_db |
| Dublic Core Ontology | dc | MediaWiki:Smw_import_dc |
| OWL | owl | MediaWiki:Smw_import_owl |
Process
General information
As per Semantic Forms Extension, it is possible to set up the following:
- Create Properties (as required)
- Create Templates (using the properties created)
- Create Forms for easier User Input
Forms
Semantic Templates
On Traditional Main Page
{{ChooseInstrument}}
calls up
{{#ask: [[Category:Instruments]] [[Image::+]]
|?Image
|?Db:title
|?InstrumentClassification
|format=template
|template=ShowInstrument
|limit=1
|Searchlabel=
|order=random
|link=none
}}
which calls up the ShowInstrument template which includes:
<includeonly><center>[[{{{2}}}|300px|link={{{1}}}]]
This is a {{{3}}}, part of the {{{4}}} family.
</center></includeonly>
On Provinces
{{ProvincePage
|ProvinceName={{PAGENAME}}
|Wikipedia=
}}
On Artists
Articles
On the artist pages the following template is called up:
{{ArticleinPage}}
Which is referring to:
{{#ask: [[Category:Articles]] [[Focus::{{PAGENAME}}]]
|?Db:author
|?Db:title
|?PublishYear
|?PublishDate
|format=template
|link=none
|template=Template:ArticleinBand
}}
and requires the following:
* {{{2}}} ({{{4}}}), [[{{{1}}}|{{{3}}}]]{{#if:{{{5|}}}|, published on {{{5}}}}}<br/>
Videos
Videos within a link section should be added as follows:
{{Youtube
|ID=
|title=
}}
That way the ID is separated from the actual embedded video function and is open for further uses later on.
Downloads
Free music downloads for any kind of page, e.g. artists should be entered as follows:
{{FreeDownload
|Link=
|Title=
}}
That way the download link is semantically associated with the ARTIST, RECORD or SONG page.
On Venues
There are two major templates being used on venue pages:
{{Eventinpage}}
which calls the following function:
{{#ask: [[Category:Events]] [[Event:place::{{PAGENAME}}]]
| ?Image
| ?Db:title
| format=gallery
| imageproperty=Image
| captionproperty=Title
| redirects=-
}}
On Genres
Main Templates
On each Genre page one of the following templates should be included:
| Template Name | Definition | Code |
|---|---|---|
| Template:GenrePage | Main template for modern genres such as Rock. |
{{GenrePage
|GenreName=
|Wikipedia=
|DBPedia=
|Subgenreof=
}}
|
| Template:FolkGenrePage | For folk genres, such as Hua'er. |
{{FolkGenrePage
|GenreName=
|Wikipedia=
|DBPedia=
|Subgenreof=
|Abstract=
|Video=
}}
|
| Template:OldGenrePage | For older major genres, such as Traditional. This template also looks for articles, artists, etc. |
{{OldGenrePage
|GenreName=
|Wikipedia=
|DBPedia=
|Subgenreof=
}}
|
| Template:OperaStyle | This one only applies for Opera Styles, such as Beijing Opera. |
{{OperaStyle
|Image=
|ImageDescription=
|title=
|hasChinesename=
|hasPinyinname=
|Video=
|wikipedia=
|dbpedia=
}}
|
Records
As part of the shown data, also genre-specific records are being listed. Three templates are required:
{{#ask: [[Category:Artists]] [[Mo:genre::{{{GenreName}}}]]
| format=template
| template=AskRecord
| link=none
| order=random
| limit=50
}}
that gives artists to
{{#ask: [[Foaf:maker::{{{1}}}]]
| ?Db:title
| ?releaseYear
| ?db:releaseDate
| ?Foaf:maker
| format=template
| template=ShowRecord
| link=none
}}
which gives record results to
* {{{5}}} ({{{3}}}), [[{{{1}}}|{{{2}}}]]{{#if:{{{4|}}}|, published on {{{4}}}}}<br/>
Books
On the genre pages the following template is called up:
{{BooksinPage}}
Which is referring to:
{{#ask: [[Category:Books]] [[Db:nonFictionSubject::{{PAGENAME}}]]
|?Db:author
|?Db:title
|?releaseYear
|?Db:releaseDate
|format=template
|link=none
|template=Template:CallUpBook
}}
and requires the following:
* {{{2}}} ({{{4}}}), [[{{{1}}}|{{{3}}}]]{{#if:{{{5|}}}|, published on {{{5}}}}}<br/>
Instrument Classification
{{InstrumentClassification}}
Instruments
{{MusicianInstrument}}
which calls up
== Musicians playing this instrument ==
{{#ask: [[Category:People]] [[Db:instrument::{{{PAGENAME}}}]]
| format=list
|}
Opera Styles
{{OperaStyle
|title=
|hasChinesename=
|hasPinyinname=
|wikipedia=
}}
Implementation
With Artists and Records being the largest sets of data, implementation will start with a smaller dataset to sample the usecases and gather more experience.
Chosen starting point: Category:Venues
--> Most pages do NOT have a template structure in place.
--> Try to get external Semantic Data imported, e.g. via the sameas:wikipedia link, the location properties of a city (to be used in the Semantic Results Form for Maps)
Via the ASK structure we have a workaround for the breaking of <ref> links when the extension DPL (Dynamic Page List) is being used. E.g. the following query gives the same result as the DPL:
{{#ask:[[Category:Artists]] [[LocationCity::Beijing]] [[Activity start::2000]]}}
However, one has to enter the data first.
Forms
--> The Form:Add a New Venue page is ready to use. And also automatically added to the tab of all Venue pages.
--> The Form:Add a New Artist page is ready to use. And also automatically added to the tab of all Artist pages.
--> The Form:Add a New Record page is ready to use. And also automatically added to the tab of all Record pages.
--> The Form:Add a New City page is ready to use. And also automatically added to the tab of all City pages.
--> The Form:Add a New Event page is ready to use. And also automatically added to the tab of all Event pages.
--> The Form:Add a New Article page is ready to use. And also automatically added to the tab of all Article pages.
Known work-arounds
Getting images to appear on venue pages (until SRF 1.8 is released)
{{#ask: [[Category:Events]] [[EventLocation::{{PAGENAME}}]]
| ?Image
| ?Title
| format=gallery
| imageproperty=Image
| captionproperty=Title
| redirects=-
}}
The redirect function is not yet working. Once SRF 1.8 is released, the "redirect=-" will direct the photo to the page it contained. If that fails then the following example will help:
{{#ask: [[Category:Events]] [[EventLocation::{{PAGENAME}}]]
| ?Image
| ?Title
| ?Has redirect
| format=gallery
| imageproperty=Image
| captionproperty=Title
| redirects=Has redirect
}}
RiC TV - If a band has more than one video
If a band has more than one video, the Youtube ID tag is released as follows:
{{#ask: [[Hasvideo::+]] [[HasChinesename::零壹]]
| ?Hasvideo
| format=list
}}
VOODOO (Hasvideo MoBlynZafWc, 39C1h34VObc, CdCDvOkdmok, Ozj6m0Aqb9A, laNDQMbiuYE, xASwzdtXNG8, pidjyTXF6DQ, DyQTsSjF5fM, wrJxn9JPaJE, JMNHf5lD_dU, xzR3tcrunhY)
As such the YoutubeID template that is being used:
{{#ev:youtube|{{{2}}}|480}}
This video is from {{{1}}}.
doesn't understand the input it gets from:
{{#ask: [[Hasvideo::+]]
| ?Hasvideo
| format=template
| template=YoutubeID
| order=random
| limit=1
| searchlabel=
}}
As such we have to change the template to understand that if there are more than one value he has to make another random.
WORKAROUND:
<includeonly>{{#arraydefine:video|{{{2}}}|,|}}{{#ev:youtube|{{#arrayindex:video|{{Rand|{{#arraysize:video}}}}}}|480}}
This video is from {{{1}}}. </includeonly>
Now, only ONE video is shown, randomly chosen from the band page.
The general functionality can also be called upon via:
{{PlayVideo
|Genre=
}}
with one allowed genre.
RDF Export
Currently most imported ontologies don't work in the RDF Export due to URI referencing issues.
foaf: URI clarified
mo: URI clarified
db: URI clarified
event: URI clarified
owl: URI clarified
Geographical coordinates are not being exported via RDF, check e.g. pages BEIJING and D-22
Intra-Wiki linkage and Inter-Wiki linkage
An important aspect of the semantic web and open linked data is the linkage that applies between pages.
At Rock in China, there are a number of cross-links available, e.g.
Artist links to City and Year of Founding
these links should be semantically attributed to enable machines to read the structure.
At Rock in China we propose the following interlinks:
Artist --> originatefrom --> ArtistOrigin (City, Country, Province)
Artist --> basedin --> City
Venue --> basedin --> City
City --> sameas --> Wikipedia / dbpedia
Artist --> made --> Record
Record --> maker --> Artist
Festival --> basedin --> City
Enabling Open Linked Data
Via the Property:sameas the following other Open Linked Data Sources are being linked:
- DBPedia
- Freebase
- Musicbrainz
Further information
- Semantic Mediawiki, the homepage of the major extension installed here
- Semantic Web, general wiki about semantic web and Open Linked Data
