Quantcast
Viewing latest article 2
Browse Latest Browse All 39

I'm too Shexy for my POD ~ Experiments on Shapes to Forms

@Smag0 wrote:

I want to start a new post for those interested in developping tools for creating Gui from RDF Shapes.

So lets discuss about

What is your favorite ?

Why ?
What issue do you face ?
How can we use ui-ontology ?

what must the tools build ? ( ui-format )

Is it possible to automaticaly build :

Does someone have an idea how to deal with footprints

footprints : https://www.w3.org/ns/footprints

Schema can be easily loaded with

shex js lib https://github.com/shexSpec/shex.js
using the loader as shown here https://github.com/scenaristeur/spoggy-simple/blob/553e7e49c344215875e9f38cc47cc9928533af46/testform.html#L82

Here are my first test

Some other related posts :

ShEx V1 ? Obsolète ?

PREFIX :       <http://example.org/>
PREFIX schema: <http://schema.org/>
PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>

:User {
  schema:name          xsd:string  ;
  schema:birthDate     xsd:date?  ;
  schema:gender        [ schema:Male schema:Female ] OR xsd:string ;
  schema:knows         IRI @:User*
}

shEx2


https://rawgit.com/shexSpec/shex.js/master/packages/shex-webapp/doc/shex-simple.html

  • tension.shex
PREFIX : <http://hl7.org/fhir/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

start = @<TensionShape>

<TensionShape> {               # An Observation has:
  :status ["preliminary" "final"]; #   status in this value set
  :subject @<UserShape>         #   a subject matching <UserShape>.
}

<UserShape> {                   # A Patient has:
 :name xsd:string*;                #   one or more names
 :birthdate xsd:date?              #   and an optional birthdate.
}

  • with data
PREFIX : <http://hl7.org/fhir/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

<Tension1>
  :status    "final" ;
  :subject   <User2> .

<User2>
  :name "Bob" ;
  :birthdate "1999-12-31"^^xsd:date .
  • query map (What is a query map ??)
{FOCUS :status _}@START,
<User2>@!<TensionShape>

some shapes to test :

Posts: 15

Participants: 5

Read full topic


Viewing latest article 2
Browse Latest Browse All 39

Trending Articles