-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathform.html
64 lines (49 loc) · 2.26 KB
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<form base="http://example.org/">
<!-- Root Class Person -->
<legend>Person</legend>
<div typeof="foaf:Person" resource="Person-{pid}">
<input name="pid" type="hidden" value="123-{foaf:name}" />
<!-- literal property -->
<label>Name</label>
<input name="foaf:name" type="literal" datatype="xsd:string" required />
<label>Gender</label>
<input name="foaf:gender" type="literal" select select-options='{"female":"Female", "male":"Male", "other": "Other"}' datatype="xsd:string" />
<!-- literal property -->
<label>E-Mail</label>
<input name="foaf:mbox" type="literal" placeholder="[email protected]" additional />
<!-- resource property -->
<input name="bio:event" type="resource" value="bio:Birth"
arguments='{"pid":"{pid}"}'
/>
<!-- resource property -->
<input name="bio:event" type="resource" value="bio:Event"
arguments='{"pid":"{pid}"}' additional multiple
/>
<!-- multiple external resources -->
<label>Knows</label>
<input name="foaf:knows" type="resource" select select-options='{"Person-1":"Example Person 1", "Person-2":"Example Person 2"}' external />
<!-- literal property as textarea -->
<label>Comment</label>
<input name="rdfs:comment" type="literal" textarea />
</div>
<!-- Resource Class Birth -->
<legend>Birth</legend>
<div typeof="bio:Birth" resource="Birth-{pid}" id="BirthEvent">
<p class="help">Adds the resource Birth to the Person.</p>
<label>Place</label>
<input name="rdfs:label" type="literal" datatype="xsd:string" placeholder="Birthplace" />
<label>Date</label>
<input name="dc:year" type="literal" datatype="xsd:date" placeholder="JJJJ-MM-TT" />
</div>
<!-- Resource Class Event -->
<legend>Event</legend>
<div typeof="bio:Event" resource="Event-{rdfs:label}-{pid}" id="EventEvent">
<p class="help">Adds a biographical event to the Person. It may has a start and/or end date.</p>
<label>Title</label>
<input name="rdfs:label" type="literal" datatype="xsd:string" placeholder="Title" />
<label>From</label>
<input name="dc:date" type="literal" datatype="xsd:gYear" placeholder="JJJJ" />
<label>To</label>
<input name="dc:date" type="literal" datatype="xsd:gYear" placeholder="JJJJ" />
</div>
</form>