simeonackermann / RDForm

Create and edit RDF data in a HTML form
GNU General Public License v2.0
19 stars 5 forks source link

Select Options for Resources #14

Closed white-gecko closed 4 years ago

white-gecko commented 4 years ago

In the README there is the example of an HTML select element with literal values as options. Is it also possible to predefine a list of IRI resources for a select element? (Without using a SPARQL endpoint for the options.)

<input name="foaf:gender" type="literal" select select-options='{"woman":"woman", "man":"man"}' datatype="xsd:string" />
simeonackermann commented 4 years ago

With latest commits its possible to define a select list for IRIs like following:

<input name="foaf:knows" type="resource" select select-options='{"ex:p1":"Person 1", "ex:p2":"Person 2"}' external />
white-gecko commented 4 years ago

Thank you very much.