From c5b3fb46ba612c3e115f165781325795f1f83491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Tue, 12 Nov 2024 11:07:50 +0100 Subject: [PATCH 01/21] Update README.md Fixed RDF/POST link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 739cc548..738670fc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ What AWC provides for users as out-of-the-box generic features: * loading RDF data from remote Linked Data sources * multilingual, responsive user interface built with Twitter Bootstrap (currently [2.3.2](https://getbootstrap.com/2.3.2/)) * multiple RDF rendering modes (currently item/list/table/map) -* RDF editing mode based on [RDF/POST](http://www.lsrn.org/semweb/rdfpost.html) encoding +* RDF editing mode based on [RDF/POST](https://atomgraph.github.io/RDF-POST/) encoding * SPARQL endpoint with interactive results Getting started From 59f9da4903f28f26359b4d737029bfdd0735a157 Mon Sep 17 00:00:00 2001 From: Martynas Date: Sat, 16 Nov 2024 11:42:16 +0100 Subject: [PATCH 02/21] Whitespace cleanup --- .../static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl b/src/main/webapp/static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl index 61fce042..6cc424cc 100644 --- a/src/main/webapp/static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl +++ b/src/main/webapp/static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl @@ -315,7 +315,7 @@ exclude-result-prefixes="#all"> - + From c12e5a4ccfa1161f5f827d86aa4ee06226e1ccf0 Mon Sep 17 00:00:00 2001 From: Martynas Date: Sat, 16 Nov 2024 13:06:25 +0100 Subject: [PATCH 03/21] XSLT stylesheet versions bumped to 3.0 Added `xmlns="http://www.w3.org/1999/xhtml"` to (X)HTML stylesheets Always use `output="xhtml"` SNAPSHOT bump --- pom.xml | 2 +- .../client/writer/XSLTWriterBase.java | 26 ++++++++++--------- .../client/xsl/bootstrap/2.3.2/container.xsl | 3 ++- .../client/xsl/bootstrap/2.3.2/document.xsl | 1 + .../xsl/bootstrap/2.3.2/external-layout.xsl | 3 ++- .../xsl/bootstrap/2.3.2/imports/default.xsl | 3 ++- .../client/xsl/bootstrap/2.3.2/imports/dh.xsl | 3 ++- .../xsl/bootstrap/2.3.2/imports/foaf.xsl | 3 ++- .../client/xsl/bootstrap/2.3.2/imports/sp.xsl | 3 ++- .../xsl/bootstrap/2.3.2/internal-layout.xsl | 3 ++- .../client/xsl/bootstrap/2.3.2/layout.xsl | 3 ++- .../client/xsl/bootstrap/2.3.2/resource.xsl | 1 + .../client/xsl/bootstrap/2.3.2/sparql.xsl | 3 ++- .../client/xsl/imports/dbpedia-owl.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/dc.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/dct.xsl | 3 ++- .../atomgraph/client/xsl/imports/default.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/doap.xsl | 3 ++- .../atomgraph/client/xsl/imports/external.xsl | 1 + .../com/atomgraph/client/xsl/imports/foaf.xsl | 1 + .../com/atomgraph/client/xsl/imports/ldt.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/rdf.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/rdfs.xsl | 3 ++- .../atomgraph/client/xsl/imports/schema.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/sd.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/sioc.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/skos.xsl | 3 ++- .../com/atomgraph/client/xsl/imports/sp.xsl | 3 ++- 28 files changed, 63 insertions(+), 35 deletions(-) diff --git a/pom.xml b/pom.xml index 9a36e0fd..f0371279 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.atomgraph client - 4.0.16-SNAPSHOT + 4.0.17-SNAPSHOT ${packaging.type} AtomGraph Web-Client diff --git a/src/main/java/com/atomgraph/client/writer/XSLTWriterBase.java b/src/main/java/com/atomgraph/client/writer/XSLTWriterBase.java index 575641d3..2c8bfcab 100644 --- a/src/main/java/com/atomgraph/client/writer/XSLTWriterBase.java +++ b/src/main/java/com/atomgraph/client/writer/XSLTWriterBase.java @@ -114,20 +114,22 @@ public void transform(Xslt30Transformer xsltTrans, DataManager dataManager, Byte out.setOutputStream(entityStream); out.setOutputProperty(Serializer.Property.ENCODING, UTF_8.name()); - if (mediaType.isCompatible(MediaType.TEXT_HTML_TYPE)) - { - out.setOutputProperty(Serializer.Property.METHOD, "html"); - out.setOutputProperty(Serializer.Property.MEDIA_TYPE, MediaType.TEXT_HTML); - out.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, "http://www.w3.org/TR/html4/strict.dtd"); - out.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, "-//W3C//DTD HTML 4.01//EN"); - } - if (mediaType.isCompatible(MediaType.APPLICATION_XHTML_XML_TYPE)) - { +// if (mediaType.isCompatible(MediaType.TEXT_HTML_TYPE)) +// { +// out.setOutputProperty(Serializer.Property.METHOD, "html"); +// out.setOutputProperty(Serializer.Property.HTML_VERSION, "5.0"); +// out.setOutputProperty(Serializer.Property.MEDIA_TYPE, MediaType.TEXT_HTML); +// out.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, ""); +// out.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, ""); +// } +// if (mediaType.isCompatible(MediaType.APPLICATION_XHTML_XML_TYPE)) +// { out.setOutputProperty(Serializer.Property.METHOD, "xhtml"); + out.setOutputProperty(Serializer.Property.HTML_VERSION, "5.0"); out.setOutputProperty(Serializer.Property.MEDIA_TYPE, MediaType.APPLICATION_XHTML_XML); - out.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"); - out.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, "-//W3C//DTD XHTML 1.0 Strict//EN"); - } + out.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, ""); + out.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, ""); +// } xsltTrans.setResourceResolver(new ResourceResolverWrappingURIResolver((URIResolver)dataManager)); xsltTrans.getUnderlyingController().setUnparsedTextURIResolver((UnparsedTextURIResolver)dataManager); diff --git a/src/main/webapp/static/com/atomgraph/client/xsl/bootstrap/2.3.2/container.xsl b/src/main/webapp/static/com/atomgraph/client/xsl/bootstrap/2.3.2/container.xsl index a1292183..f89940a4 100644 --- a/src/main/webapp/static/com/atomgraph/client/xsl/bootstrap/2.3.2/container.xsl +++ b/src/main/webapp/static/com/atomgraph/client/xsl/bootstrap/2.3.2/container.xsl @@ -21,7 +21,8 @@ limitations under the License. ]> - ]> ]> - ]> - ]> - ]> - ]> - ]> - ]>