sparna-git / skos-play

SKOS-Play allows to print SKOS files in HTML or PDF. It also embeds xls2rdf to generate RDF from Excel.
http://labs.sparna.fr/skos-play
GNU Lesser General Public License v3.0
66 stars 12 forks source link

How to specify a typed literal in the header? #75

Closed EmidioStani closed 1 year ago

EmidioStani commented 1 year ago

In the header of the spreadsheet if I specify:

dct:created "2018-07-09"^^xsd:date

the generated RDF becomes a literal surrounding the xsd:date, e.g:

dct:created "\"2018-07-09\"^^xsd:date";

or if I remove the double quotes:

dct:created 2018-07-09^^xsd:date

it becomes:

dct:created "2018-07-09^^xsd:date";

tfrancart commented 1 year ago

No no, you need to specify the datatype on the property header, not in the value cell. Like so:

image

This is the same syntax as documented at https://skos-play.sparna.fr/play/convert#datatypes

EmidioStani commented 1 year ago

ok I got it, thanks.

What if I want specify a URI as Literal ?, for example

vann:preferredNamespaceURI "http://data.europa.eu/m8g/cpsvap"

In this way the " are escaped, or maybe better to put rdfs:Literal like vann:preferredNamespaceURI^^rdfs:Literal ?

tfrancart commented 1 year ago

If you indicate an explicit ^^xsd:string datatype, it should force the value as a string literal.

Le mar. 6 déc. 2022 à 17:21, Emidio Stani @.***> a écrit :

ok I got it, thanks.

What if I want specify a URI as Literal ?, for example

vann:preferredNamespaceURI "http://data.europa.eu/m8g/cpsvap"

In this way the " are escaped, or maybe better to put rdfs:Literal like vann:preferredNamespaceURI^^rdfs:Literal ?

— Reply to this email directly, view it on GitHub https://github.com/sparna-git/skos-play/issues/75#issuecomment-1339627243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU2H4JDDYSSTE6SAVO6VOLWL5RYDANCNFSM6AAAAAASVOZSRI . You are receiving this because you commented.Message ID: @.***>

--

Thomas Francart - SPARNA Web de données | Architecture de l'information | Accès aux connaissances blog : blog.sparna.fr, site : sparna.fr, linkedin : fr.linkedin.com/in/thomasfrancart tel : +33 (0)6.71.11.25.97, skype : francartthomas

EmidioStani commented 1 year ago

Thanks a lot @tfrancart, I think then the issue can be close