EntitySchema:E1: Difference between revisions

Updated Schema text: Add P50
(Updated Schema text: titel)
(Updated Schema text: Add P50)
 
(8 intermediate revisions by the same user not shown)
Schema / Line 2: Schema / Line 2:
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>
start = @<report>
Schema / Line 12: Schema / Line 16:
   dreamst:P11 [ dreams:Q10 ]
   dreamst:P11 [ dreams:Q10 ]
     // rdf:label "language"
     // rdf:label "language"
     // rdf:comment "Language should be Danish" ;  
     // rdf:comment "Language must be Danish" ;  


   dreamst:P40 . ?
   dreamst:P40 . ?
     // rdf:label "miljørapporter-ID"
     // rdf:label "miljørapporter-ID"
     // rdf:comment "Identifier for Miljøportalen" ;
     // rdf:comment "Must have one or zero identifier for Miljøportalen" ;


   dreams:P1 [ @da ]
   dreamst:P1 [ @da ]
     // rdf:label "title"
     // rdf:label "title"
     // rdf:comment "Must have a Danish 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" ;
 
}
}