From a5b447e50aec06e818b670b6a0e24741b96ec2f4 Mon Sep 17 00:00:00 2001 From: alvaro <alvaro@alia.(none)> Date: Mon, 25 Jun 2012 10:22:40 -0700 Subject: [PATCH] Added <link rel="alternate"... to other representations (RDF/XML, JSON, etc.) in HTML templates --- .../originalComponents/services/classes/html.template | 4 ++++ .../originalComponents/services/instances/html.template | 4 ++++ .../originalComponents/services/namedGraphs/html.template | 4 ++++ .../originalComponents/types/rdfs:Resource/html.template | 4 ++++ utils/modules/service-view.inc | 4 ++++ utils/modules/type-view.inc | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/doc/examples/originalComponents/services/classes/html.template b/doc/examples/originalComponents/services/classes/html.template index 0737ba48..40a25f47 100644 --- a/doc/examples/originalComponents/services/classes/html.template +++ b/doc/examples/originalComponents/services/classes/html.template @@ -7,6 +7,10 @@ <meta name="description" content=""> <meta name="author" content=""> <link href="{{lodspk.home}}css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <style> body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ diff --git a/doc/examples/originalComponents/services/instances/html.template b/doc/examples/originalComponents/services/instances/html.template index 8b40cdd3..c0ec21f7 100644 --- a/doc/examples/originalComponents/services/instances/html.template +++ b/doc/examples/originalComponents/services/instances/html.template @@ -6,6 +6,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <link href="{{lodspk.home}}css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> <style> body { diff --git a/doc/examples/originalComponents/services/namedGraphs/html.template b/doc/examples/originalComponents/services/namedGraphs/html.template index a00c6536..3deff84e 100644 --- a/doc/examples/originalComponents/services/namedGraphs/html.template +++ b/doc/examples/originalComponents/services/namedGraphs/html.template @@ -6,6 +6,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <link href="{{lodspk.home}}css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> <style> body { diff --git a/doc/examples/originalComponents/types/rdfs:Resource/html.template b/doc/examples/originalComponents/types/rdfs:Resource/html.template index 99d73df6..78b80109 100644 --- a/doc/examples/originalComponents/types/rdfs:Resource/html.template +++ b/doc/examples/originalComponents/types/rdfs:Resource/html.template @@ -7,6 +7,10 @@ <meta name="description" content=""> <meta name="author" content=""> <link href="{{lodspk.home}}css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <style> body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ diff --git a/utils/modules/service-view.inc b/utils/modules/service-view.inc index c48017e1..89e4d58a 100644 --- a/utils/modules/service-view.inc +++ b/utils/modules/service-view.inc @@ -6,6 +6,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> <style> body { diff --git a/utils/modules/type-view.inc b/utils/modules/type-view.inc index 323f9b1f..3cde7289 100644 --- a/utils/modules/type-view.inc +++ b/utils/modules/type-view.inc @@ -6,6 +6,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> + <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" /> + <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" /> + <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" /> + <link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" /> <link href="{{lodspk.home}}css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> <style> body { -- GitLab