Are email addresses without "mailto:" resolved as IRI?

In the W3C RDF Turtle Documentation, I came across two examples (16 and 17) where the email address was used as an IRI:

_:b <http://xmlns.com/foaf/0.1/mbox> <bob@example.com> .

As I understand it, email addresses are resolved as URIs when the corresponding scheme precedes, i.e. mailto:bob@example.com. If the email address in the above example must be a valid URI, then the operator should really read:

_:b <http://xmlns.com/foaf/0.1/mbox> <mailto:bob@example.com> .

Is this an error in the documentation or does the IRI (as opposed to the URI) require a schema?

+4
source share
1 answer

, - mailto: bob@example.org, , - . URI . , Jena rdfcat Turtle, Turtle RDF/XML.

@prefix : <urn:ex:> .
@base <http://example.org> .

:a :hasEmail <bob@example.org>.

Turtle RDF/XML:

@prefix :      <urn:ex:> .

:a      :hasEmail  <http://example.org/bob@example.org> .
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="urn:ex:">
  <rdf:Description rdf:about="urn:ex:a">
    <hasEmail rdf:resource="http://example.org/bob@example.org"/>
  </rdf:Description>
</rdf:RDF>
+3

Source: https://habr.com/ru/post/1629529/


All Articles