Comments (7)
@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.
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.
Yeah, I am specifically wondering if microdata parsers actually do it...
from microdata.
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.
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.
In any event, I deferred to RFC3986 for resolving URLs, so I think that covers it and we can close this issue.
from microdata.
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)
- Global Identifier
- Values section title odd
- Textual property value does not use language of the element HOT 4
- No description of how numeric property values are obtained. HOT 12
- Incomplete sentence: "User agents are"
- Syntax highlighting not working correctly HOT 12
- Capitalization of "microdata"
- give examples and algorithms a URL HOT 1
- Provide an example of itemid
- incomplete sentence "User agents are" HOT 2
- RDFa and JSON-LD are not equivalent HOT 12
- RDFa should generate to RDFa Lite HOT 4
- Use the same example for JSON-LD and RDFa HOT 6
- Reference to [microdata-rdf] should be changed HOT 13
- Reusing components in different contexts HOT 4
- itemref as a url, not just an ID within the same document
- "Valid" definition doesn't resolve
- "Our company" example is confusing
- Hedral the Cat HOT 1
- Hedral Issue 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microdata.