Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RDFa 1.1 #50

Open
dantman opened this issue May 13, 2013 · 0 comments
Open

Support RDFa 1.1 #50

dantman opened this issue May 13, 2013 · 0 comments

Comments

@dantman
Copy link

dantman commented May 13, 2013

It looks like ARC2's parsers don't support RDFa 1.1:

Test script:

require_once "arc2/ARC2.php";
$parser = ARC2::getRDFParser();
$parser->parse( 'test.html' );
var_dump( $parser->getTriples() );

This being test.html

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/" lang="en" dir="ltr">
<head>
    <title>...</title>
    <base href="http://example.org/">
</head>
<body>
    <div about="http://example.org/FooBar">
        <span property="dc:title">FooBar</span>
    </div>
</body>
</html>

In the resulting triples 'p' for http://example.org/FooBar is dc:title instead of the http://purl.org/dc/elements/1.1/title you'd get using RDFa 1.0's xmlns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant