Skip to content

Instantly share code, notes, and snippets.

@shellac
Last active December 26, 2015 03:19
Show Gist options
  • Save shellac/7084741 to your computer and use it in GitHub Desktop.
Save shellac/7084741 to your computer and use it in GitHub Desktop.
Attempt to explain how to fix RDFa example
<!DOCTYPE html>
<html version="HTML+RDFa 1.1"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:aa="http://activearchives.org/terms/">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta charset="utf-8" />
<title>active archives</title>
</head>
<body>
<section about="http://phenix.stdin.fr/media/sound/20120323_S_CLEMENT_ENTRETIEN.ogg" rel="aa:hasAnnotation">
<section typeof="aa:annotation" data-begin="00:00:00" data-end="00:00:12">
<time property="aa:begin">00:00:00</time>
<time property="aa:end">00:00:12</time>
hello
</section>
</section>
</body>
</html>
@prefix aa: <http://activearchives.org/terms/> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://phenix.stdin.fr/media/sound/20120323_S_CLEMENT_ENTRETIEN.ogg> aa:hasAnnotation
[ a aa:annotation ;
aa:begin "00:00:00" ;
aa:end "00:00:12"
] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment