--- tags: ShEx, RDF-Star --- # RDF-Star ShEx perspective In the old days, an Invoice looked like ```turtle <Inv1> :payer "John" ; :amount "100"^^:EUR ; :dueDate "2020/06/06"^^xsd:date . ``` ```turtle <InvoiceShape> { :payer xsd:string ; :amount :EUR ; :dueDate xsd:date } ``` ## RDF-*-y Invoice: ```turtle << <Inv1> :payer "John" >> :submittedBy "Sue" . << <Inv1> :amount "100"^^:EUR >> :submittedBy "Sue" . << <Inv1> :dueDate "2020/06/06"^^xsd:date >> :submittedBy "Sue" . ``` # Eric ```turtle << wd:Q28914639 wdt:P31 wd:Q5 >> a wikibase:Statement, wikibase:BestRank ; wikibase:rank wikibase:NormalRank . ``` ## EricP's crappy Schema ```turtle <InvoiceShape> { << <PayerShape> OR <AmountShape> OR <DueShape> >> :submittedBy xsd:string } <PayerShape> IRI { :payer xsd:string } <AmountShape> IRI { :amount :EUR } <DueShape> IRI { :dueDate xsd:date } ``` ## Labra's attempt ```turtle <InvoiceShape> << { :payer xsd:string ; :amount :EUR ; :dueDate xsd:date } >> { :submittedBy xsd:string } ``` ``` json { type: Schema shapes: [ { id: S1, type: StarShape, expression: [ ] } ] } ``` ```turtle << << <Earth'sMoon> :madeOf <GreenCheese> >> :claimedBy "ericP" . >> :reportedBy "Labra" . ``` ```turtle <FirstClassClaims> << { :madeOf . } >> :claimedBy xsd:string <2ndClassClaims> << @<FirstClassClaims> >> { :reportedBy xsd:string } <S'> << { :madeOf . } >> { } <S> EmbeddedTriple { :a IRI } ``` <hr/> # GeneWiki ## Gene ```turtle wd:Q17853226 rdf:type wd:Q8178 ``` ## Gene Variant ```turtle wd:Q21851559 wdt:P3433 wd:Q17853226 . wd:Q21851559 wdt:P3354 wd:Q38160427 . # Dabrafenib ``` ## Disease ```turtle wd:Q180614 wdt:P31 wd:12136 . ``` ## Medication (Dabrafenib) ### Dabrafenib / Trametinib combination therapy ```turtle wd:Q38160427 a wikibase:Item ; rdfs:label "Dabrafenib / Trametinib combination therapy"@en ; skos:prefLabel "Dabrafenib / Trametinib combination"@en ; schema:description "combination therapy"@en ; skos:altLabel "Combination of Dabrafenib and Trametinib"@en . << wd:Q38160427 wdt:P31 wd:Q1304270 >> # a Combination therapy pr:P1640 wd:Q27612411 ; # curator CIViC database pr:P854 <https://civic.genome.wustl.edu/links/evidence/95> ; # reference URL <https:...95> pr:P248 wd:Q27852919 . # stated in Dabrafenib and trametinib, alone and in combination for BRAF-mutant metastatic melanoma. << wd:Q38160427 wdt:P527 wd:Q7833138 >> # has part trametinib pr:P1640 wd:Q27612411 ; # curator CIViC database pr:P854 <https://civic.genome.wustl.edu/links/evidence/95> ; # reference URL <https:...95> pr:P248 wd:Q27852919 . # stated in Dabrafenib and trametinib, alone and in combination for BRAF-mutant metastatic melanoma. << wd:Q38160427 wdt:P527 wd:Q3011604 >> # has part dabrafenib pr:P1640 wd:Q27612411 ; # curator CIViC database pr:P854 <https://civic.genome.wustl.edu/links/evidence/95> ; # reference URL <https:...95> pr:P248 wd:Q27852919 . # stated in Dabrafenib and trametinib, alone and in combination for BRAF-mutant metastatic melanoma. ``` ### trametinib <hr/>