Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/form-examples/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,25 @@ <h1>Form fields</h1>
</td>
<td class="output"></td>
</tr>

<tr class="form-demo">
<td class="input">
<pre>
# A field for entering a URI as a named node
# (stores as RDF resource, not string literal)

ex:form
a ui:NamedNodeURIField ;
ui:label "Homepage" ;
ui:property foaf:homepage .
</pre
>
</td>
<td class="target">
<pre>ex:this foaf:homepage &lt;https://example.org/alice&gt; .</pre>
</td>
<td class="output"></td>
</tr>
</tbody>
</table>
</div>
Expand Down
15 changes: 15 additions & 0 deletions docs/forms-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,21 @@ <h3>Single Value fields - Text</h3>

<h4 class="class">SingleLineTextField</h4>

<h4 class="class">NamedNodeURIField</h4>

<p>
A NamedNodeURIField is like a SingleLineTextField, except that the
value it generates is not a literal string but an RDF named node with
the given URI. Use this when users need to provide explicit URIs to things,
storing them as proper RDF resources rather than text values.
</p>

<p>
Unlike PhoneField or EmailField which add URI scheme prefixes (<tt>tel:</tt>
or <tt>mailto:</tt>), the NamedNodeURIField stores the URI exactly as
entered by the user.
</p>

<h4 class="class">MultiLineTextField</h4>

<h3>Complex fields</h3>
Expand Down
Loading