Questions tagged [iri]

The internationalized resource identifier (IRI) was defined by the Internet Engineering Task Force (IETF) in 2005 as a new internet standard to extend upon the existing uniform resource identifier (URI) scheme. The new standard was published in RFC 3987.

IRI extends the URI standard to support I18N in the following ways:

  • Support for bidirectional text
  • Support for non-ASCII characters
  • Support for UTF-8 encoding

References

63 questions
6
votes
1 answer

Structured Data > Microdata & Json-LD > Entity IDs > Fragment Identifier

I was wondering if it is better/proper to reference the entities using a fragment identifier format - basically by inserting a hash before the name [url] + # + [name] => http://example.com/page/#webPage EDIT: Following a kind answer from the…
TBB
  • 1,207
  • 1
  • 14
  • 25
5
votes
1 answer

When do you need to use iri_to_uri after using url_has_allowed_host_and_scheme in Django?

In the Django 3.0 release notes, this comment is made about url_has_allowed_host_and_scheme: To avoid possible confusion as to effective scope, the private internal utility is_safe_url() is renamed to url_has_allowed_host_and_scheme(). That a URL…
Flimm
  • 136,138
  • 45
  • 251
  • 267
4
votes
1 answer

Are email addresses without "mailto:" allowed as IRIs?

In the RDF Turtle documentation from W3C I came across two examples (16 and 17) where an email address was used as an IRI: _:b . As I understand it, email addresses are allowed as URIs when…
Dieudonné
  • 543
  • 1
  • 4
  • 16
3
votes
1 answer

Java doesn't support IRI?

Example code: java.net.URI.create("http://测试.com").getHost(); // return null new java.net.URL("http://测试.com").getHost(); // return "测试.com" Actual: URI doesn't resolve IRI Expected: both return "测试.com" Related documents: In javadoc of URI, it…
jerry-ye
  • 133
  • 5
3
votes
1 answer

What is the difference between IRI and URI in OWL?

Example: http://data.doremus.org/activity/587ae689-790e-3525-9e3a-dac63f449a03 I think it is a IRI and also a URI. (Am I right?) And I use OWL API to parse it. In the class "IRI", there is a method getShortForm(), when I use it, I get…
Xinze LYU
  • 105
  • 10
3
votes
0 answers

Preferring HTTPS IRIs on the semantic web

TL/DR: Why shouldn't we prefer https: IRIs when defining new vocabularies for the semantic web? The semantic web is built around the use of IRIs to identify various components, be they resources like a webpage or abstract concepts like ownership. …
Richard Smith
  • 2,953
  • 2
  • 15
  • 15
3
votes
1 answer

N-triples IRI prefix jena

I want to use prefix to represent this nt file: . "a"…
Alex Kid
  • 45
  • 3
3
votes
1 answer

What are the eligible characters in a URL's Fragment (location.hash)?

Context: I am creating an app that stores its data in the location.hash. I want to encode as few characters as possible to maintain maximum legibility. As explained in this answer, reserved characters are different for each segment of the URL. So…
Thoran
  • 8,884
  • 7
  • 41
  • 50
3
votes
2 answers

What is the point of Tomcat's setting URIEncoding?

In Apache Tomcat, parameter URIEncoding tells Tomcat how to interpret incoming URIs: URIEncoding This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be used. Apache…
sleske
  • 81,358
  • 34
  • 189
  • 227
3
votes
1 answer

IDN aware tools to encode/decode human readable IRI to/from valid URI

Let's assume a user enter address of some resource and we need to translate it to: human readable form HTML4 specification refers to RFC 3986 which allows only ASCII alphanumeric characters and dash in host part and…
Denis Otkidach
  • 32,032
  • 8
  • 79
  • 100
2
votes
1 answer

Upload of TTL by sparql-update queryinto GraphDB fails on diacritics

Upload of turtle data using following bash script: #!/usr/bin/env bash RDF4J_ENDPOINT=endpoint_uri DIR="~/modelio/workspace/IPR/" IFS= FILE=tmp.rq function runUpdateQuery() { cp $1 $FILE sed -i -e "s!__VOC_IRI__!$2!g" $FILE curl…
Meďák
  • 361
  • 1
  • 5
  • 12
2
votes
1 answer

Is it possible to fully disable IRI in API Platform?

I wan't to make a "classic" API without IRI. I just want the ID in return, not an IRI nor the object/entity. I already allow plain identifiers: // config/packages/api_platform.yml api_platform: allow_plain_identifiers: true If I make any request…
matll42
  • 21
  • 1
  • 5
2
votes
1 answer

Multiple terms referring to one IRI

I want to create a context file to use for multiple data sources. Is it possible to state different terms that will refer to the exact same IRI? For example: { "@context": { "twitter_name": "http://schema.org/name", …
DannyL
  • 505
  • 4
  • 10
2
votes
1 answer

Specifying ontology IRI in java

I am trying to merge two ontologies to create a new single ontology. For this, how should I specify the IRI of the new ontology? Should it be the path to the new file or some url? Here is my code : void createRepOntology(OWLOntology O1, OWLOntology…
010101
  • 35
  • 6
2
votes
1 answer

Why/how does the browser decide ☃.net goes to xn--n3h.net

If we type into firefox or chrome http://☃.net/ It takes us to http://xn--n3h.net/ Which is a mirror of unicodesnowmanforyou.com What I don't understand is by what rules the unicode snowman can decode to xn--n3h, it doesn't look anything like…
wim
  • 338,267
  • 99
  • 616
  • 750
1
2 3 4 5