EntitySchema:E1: Difference between revisions

Updated Schema text: Add P50
(Updated Schema text)
(Updated Schema text: Add P50)
 
(14 intermediate revisions by the same user not shown)
Schema / Line 1: Schema / Line 1:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
# https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:https://dreams.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=%2F%2Fdreams.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1
# SELECT ?id { ?id <https://dreams.wikibase.cloud/prop/direct/P2> <https://dreams.wikibase.cloud/entity/Q4> . }
start = @<report>


<report> {
<report> {
    dreamst:P2 [ dreams:Q4 ]
  dreamst:P2 [ dreams:Q4 ]
        // rdf:label "report"
    // rdf:label "report"
        // rdf:comment "Instance of report or subclasses" ;
    // rdf:comment "Instance of subclass of report" ;
  dreamst:P11 [ dreams:Q10 ]
    // rdf:label "language"
    // rdf:comment "Language must be Danish" ;
 
  dreamst:P40 . ?
    // rdf:label "miljørapporter-ID"
    // rdf:comment "Must have one or zero identifier for Miljøportalen" ;
 
  dreamst:P1 [ @da ]
    // rdf:label "title"
    // rdf:comment "Must have one Danish title" ;
 
  dreamst:P3 /^Q[1-9][0-9]*$/
    // rdf:label "wikidata"
    // rdf:comment "Must have one Wikidata identifier" ;
 
  dreamst:P27 /^[1-9][0-9]*$/
    // rdf:label "number of pages"
    // rdf:comment "Must have one specification of report length" ;
 
  dreamst:P50 /^[1-9][0-9]*$/
    // rdf:label "Dreams report løbenummer"
    // rdf:comment "Must have one specified" ;
 
}
}