Skip to content

Instantly share code, notes, and snippets.

@bdelacretaz
Created September 8, 2023 09:27
Show Gist options
  • Save bdelacretaz/66b72523c15cc5d8cb28ae7eeac2b7c3 to your computer and use it in GitHub Desktop.
Save bdelacretaz/66b72523c15cc5d8cb28ae7eeac2b7c3 to your computer and use it in GitHub Desktop.
Example embedding DOAP data in HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example DOAP embedded in HTML</title>
<script type="application/asf.doap+xml">
<rdf:RDF xml:lang="en"
xmlns="http://usefulinc.com/ns/doap#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:asfext="http://projects.apache.org/ns/asfext#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<Project rdf:about="https://airflow.apache.org">
<created>2023-09-04</created>
<license rdf:resource="https://spdx.org/licenses/Apache-2.0" />
<name>Apache Airflow</name>
<homepage rdf:resource="https://airflow.apache.org" />
<asfext:pmc rdf:resource="https://airflow.apache.org" />
<shortdesc>Workflow automation platform</shortdesc>
<description>The mission of Apache Airflow...</description>
<repository>
<GitRepository>
<location rdf:resource="https://github.com/apache/airflow.git"/>
<browse rdf:resource="https://github.com/apache/airflow"/>
</GitRepository>
</repository>
</Project>
</rdf:RDF>
</script>
</head>
<body>
Example embedding DOAP in HTML, using a subset of the ASF Airflow data as an example.
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment