Giter Site home page Giter Site logo

Comments (7)

iherman avatar iherman commented on July 20, 2024 1

@gkellogg knows me well, but, to be on the safe side, I checked my code too:-) Yes, RDFLib & Co. do implement the HTML <base> element.

from microdata.

gkellogg avatar gkellogg commented on July 20, 2024

RFC3986 has a section on URI resolution, and both HTML and XML have specific rules for resolving relative URIs against an established base.

For HTML, it's typically the value of the base element in the head section. XML uses xml:base, on the closest element; many RDFa parsers do this as well.

In the absence of an explicit base, it is set from the document location.

As RDF does not allow relative IRIs in the abstract syntax, everything needs to be resolved against something. example.org has no special meaning other than convention.

from microdata.

chaals avatar chaals commented on July 20, 2024

Yeah, I am specifically wondering if microdata parsers actually do it...

from microdata.

gkellogg avatar gkellogg commented on July 20, 2024

With regards to RDF Microdata parsers, there are tests to ensure this is how relative URIs are handled. Mine does this, and I'm sure @iherman's does as well.

There are so many variations, @RubenVerborgh wrote a number of tests for various RDF serlializations to test this. We repeated those for JSON-LD, but haven't gone that far in the RDF or Microdata RDF test suites.

from microdata.

chaals avatar chaals commented on July 20, 2024

This is less important than I thought, if we solve #41 so typed items collect the vocabulary we expect for describing the names of URLs.

from microdata.

chaals avatar chaals commented on July 20, 2024

In any event, I deferred to RFC3986 for resolving URLs, so I think that covers it and we can close this issue.

@gkellogg ?

from microdata.

chaals avatar chaals commented on July 20, 2024

I did a quick'n'dirty test on the Google validator and it applied base too. So nothing to see here...

from microdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.