Form fields

# A simple form with one text field

ex:form
    a ui:SingleLineTextField; ui:label "name";
    ui:property vcard:fn .
ex:this vcard:fn  "Alice" .
# A simple form with one text field

ex:form
   a ui:MultiLineTextField ;
   ui:property rdfs:comment .
ex:this rdfs:comment "Here we made a comment" .
          
# A simple form with one boolean field

 ex:form
   a ui:BooleanField ;
   ui:property ex:allDay .
ex:this ex:allDay true .
# one Tristate field

ex:form
     a ui:TristateField ;
     ui:property ex:allDay .
  
# Commented oout so there is no value true or false:
# ex:this ex:allDay true .
# A simple form with one integer field

 ex:form
   a ui:IntegerField ;
   ui:property foaf:age .
ex:this foaf:age 6 .
# A simple form with one decimal field

 ex:form
   a ui:DecimalField ;
   ui:property ex:price .
ex:this ex:price 12.47 .
# A simple form with one floating point field

ex:form
   a ui:FloatField ;
   ui:property ex:weight .
        
 ex:this ex:weight  1.56769e23 .
    # A simple form with one color field
 ex:form
   a ui:ColorField ;
   ui:property ui:backgroundColor .
  
ex:this ui:backgroundColor "#ffccff" .
# A simple form with one date field

ex:form
   a ui:DateField;
   ui:property cal:starts .
    
ex:this cal:starts "2021-10-12"^^xsd:date .
# A  date-time field
 ex:form
     a ui:DateTimeField ;
     ui:property cal:starts .
 ex:this cal:starts "2021-10-12T12:34:23Z"^^xsd:dateTime .
  # A simple form with one phone field

ex:form
   a ui:PhoneField ;
   ui:property vcard:hasPhone . # @@ check
    
ex:this vcard:hasPhone  <tel:+1-55-555-1212> .
    # A simple form with one email address field

ex:form
   a ui:EmailField ;
   ui:property vcard:hasEmail . # @@ chcek
ex:this vcard:hasEmail  <mailto:info@example.com> .