@@ -1359,6 +1359,54 @@ literal(1, "nonNegativeInteger")
13591359// returns { "@type": "xsd:nonNegativeInteger", "@value": 1 }
13601360```
13611361
1362+ ## date
1363+ ##### WOQL.date(date) ⇒ <code >object</code >
1364+ Generates explicitly a JSON-LD string date literal from the input
1365+
1366+ ** Returns** : <code >object</code > - - A JSON-LD literal
1367+
1368+ | Param | Type | Description |
1369+ | --- | --- | --- |
1370+ | date | <code >string</code > | any date string format YYYY-MM-DD |
1371+
1372+ ** Example**
1373+ ``` javascript
1374+ date (" 2022-10-02" )
1375+ // returns { "@type": "xsd:date", "@value": "2022-10-02" }
1376+ ```
1377+
1378+ ## datetime
1379+ ##### WOQL.datetime(date) ⇒ <code >object</code >
1380+ Generates explicitly a JSON-LD string datetime literal from the input
1381+
1382+ ** Returns** : <code >object</code > - - A JSON-LD literal
1383+
1384+ | Param | Type | Description |
1385+ | --- | --- | --- |
1386+ | date | <code >string</code > | any datetime string format YYYY-MM-DDThh-mm-ssZ |
1387+
1388+ ** Example**
1389+ ``` javascript
1390+ datetime (" 2022-10-19T14:17:12Z" )
1391+ // returns { "@type": "xsd:dateTime", "@value": "2022-10-19T14:17:12Z" }
1392+ ```
1393+
1394+ ## boolean
1395+ ##### WOQL.boolean(bool) ⇒ <code >object</code >
1396+ Generates explicitly a JSON-LD boolean literal from the input
1397+
1398+ ** Returns** : <code >object</code > - - A JSON-LD literal
1399+
1400+ | Param | Type | Description |
1401+ | --- | --- | --- |
1402+ | bool | <code >boolean</code > | true | false |
1403+
1404+ ** Example**
1405+ ``` javascript
1406+ boolean (true )
1407+ // returns { "@type": "xsd:boolean", "@value": true }
1408+ ```
1409+
13621410## iri
13631411##### WOQL.iri(val) ⇒ <code >object</code >
13641412Explicitly sets a value to be an IRI - avoiding automatic type marshalling
0 commit comments