2 Answers 2

1

IRI (Internationalized Resource Identifier) is an extension of the URI. It does not return data, it is an identifier. There is also no "RDF" IRI/URI; all the URIs you list are "http" or "https" URIs. Parsing such a URI would mean splitting it into parts like "http", "www.w3.org", and "/1999/02/22-rdf-syntax-ns".

Usually the web server is configured to produce semantic data (in Turtle, RDF/XML, JSON-LD, RDFa etc.; you'd use content negotiation to get one of the formats you understand) when you navigate to URIs actually denoting a vocabulary, but it doesn't have to.

There are libraries for JS for working with RDF, but if you want to do this in a web page, with client-side JavaScript, you are out of luck ‒ JavaScript doesn't allow you to retrieve the content of a cross-domain page.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you very much for your reply! That's what I want to do: text Develop an RDF Brower(an HTML Project), use javascript to parse the "https" URIs of any address (as above), and show it in the form of list, RDF graph, etc. I use Apache Jena to parse RDF in java projects, and I will try rdfjs in this html projects. Best regards
@chenkun So you are interested in something like this, i.e. to parse a URI and represent it in RDF?
Yes, I'm looking forward to making an html project that everyone can embed directly into any web project.
0

This question has been resolved.

I use rdflib.js to parse HTTP RDF IRI:

But javascript can't parse CORS requests:

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.