You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2013/01/17 10:43:27 UTC
svn commit: r1434601 - in /incubator/marmotta/site/trunk: ./ content/
content/resources/ content/resources/css/ content/resources/img/
content/resources/js/ data/ lib/ templates/
Author: wikier
Date: Thu Jan 17 09:43:26 2013
New Revision: 1434601
URL: http://svn.apache.org/viewvc?rev=1434601&view=rev
Log:
added preliminar website skel using apache cms and maven as external build tool (MARMOTTA-12)
Added:
incubator/marmotta/site/trunk/LICENSE.txt
incubator/marmotta/site/trunk/content/
incubator/marmotta/site/trunk/content/index.html
incubator/marmotta/site/trunk/content/resources/
incubator/marmotta/site/trunk/content/resources/css/
incubator/marmotta/site/trunk/content/resources/css/marmotta.css
incubator/marmotta/site/trunk/content/resources/img/
incubator/marmotta/site/trunk/content/resources/img/apache-incubator-logo.png (with props)
incubator/marmotta/site/trunk/content/resources/img/apache-marmotta.png (with props)
incubator/marmotta/site/trunk/content/resources/js/
incubator/marmotta/site/trunk/data/
incubator/marmotta/site/trunk/data/contributors.csv
incubator/marmotta/site/trunk/lib/
incubator/marmotta/site/trunk/lib/DS.pm
incubator/marmotta/site/trunk/lib/helper.jar (with props)
incubator/marmotta/site/trunk/lib/path.pm
incubator/marmotta/site/trunk/lib/view.pm
incubator/marmotta/site/trunk/pom.xml
incubator/marmotta/site/trunk/templates/
incubator/marmotta/site/trunk/templates/marmotta-markdown.html
incubator/marmotta/site/trunk/templates/sitemap.html
Added: incubator/marmotta/site/trunk/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/LICENSE.txt?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/LICENSE.txt (added)
+++ incubator/marmotta/site/trunk/LICENSE.txt Thu Jan 17 09:43:26 2013
@@ -0,0 +1,174 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
Added: incubator/marmotta/site/trunk/content/index.html
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/index.html?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/content/index.html (added)
+++ incubator/marmotta/site/trunk/content/index.html Thu Jan 17 09:43:26 2013
@@ -0,0 +1,109 @@
+{% extends "marmotta-markdown.html" %}
+
+{% block title %}Apache Marmotta (incubating){% endblock %}
+{% block content %}
+
+ <section id="main_content" class="inner">
+
+ <p>
+ The goal of Apache Marmotta is to provide an open implementation of a Linked Data Platform that can be used,
+ extended, and deployed easily by organizations who want to publish Linked Data or build custom applications
+ on Linked Data.
+ </p>
+
+ <p>
+ The Semantic Web isn"t just about putting data on the web. It is about making links, so that a person or machine
+ can explore the web of data. Moreover, the Web has quickly evolved to a Read-Write paradigm, and Linked Data
+ technologies too. And Marmotta will address this challenge and offer a common infrastructure for organizations
+ working in this area.
+ </p>
+
+ <p>
+ Right now the project is being setting up installed in the Apache Software Foundation infrastructure. For
+ further details check the <a href="http://wiki.apache.org/incubator/MarmottaProposal">incubation proposal</a> or
+ the <a href="http://incubator.apache.org/projects/marmotta.html">project podling status</a>.</p>
+ </p>
+
+ <h2>Background</h2>
+ <p>
+ Marmotta comes as a continuation of the work in the <a href="http://lmf.googlecode.com">Linked Media Framework</a>
+ (aka LMF) project. LMF is an easy-to-setup server application that bundles central Semantic Web technologies to offer
+ some advanced services. The Linked Media Framework consists of LMF Core which provides a Read-Write Linked Data server,
+ plus some modules that complement the server with other added added capabilities, such as, SPARQL 1.1, LDPath, LDCache,
+ Reasoning, Versioning, etc. Besides, LMF also provides a Client Library, currently available in Java, PHP, and Javascript,
+ as a convenient API abstraction around the LMF web services. Currently LMF integrates with other relevant tools (Apache
+ Stanbol, Google Refine or Drupal) to cover a wider range of use cases and needs.
+ </p>
+
+ <h2>Features</h2>
+ <ul>
+ <li>
+ RDF store, supporting versioning and rule-based reasoning
+ </li>
+ <li>
+ <a href="http://www.w3.org/2012/ldp">LDP 1.0</a>
+ </li>
+ <li>
+ <a href="http://www.w3.org/TR/sparql11-overview/">SPARQL 1.1</a>
+ </li>
+ <li>
+ <a href="https://code.google.com/p/lmf/wiki/ModuleLinkedDataCaching">Linked Data Cache</a>
+ </li>
+ <li>
+ <a href="http://ldpath.googlecode.com">LDPath</a>
+ </li>
+ <li>
+ <a href="http://lmf.googlecode.com">...</a>
+ </li>
+ </ul>
+
+ <h2>Team</h2>
+ <p>
+ The Apache Marmotta team currently consists of (in alphabetical order):
+ </p>
+ <ul>
+ <li>
+ Andy Seaborne (C-P-M)
+ </li>
+ <li>
+ Dietmar Glachs (C-P)
+ </li>
+ <li>
+ Fabian Christ (C-P)
+ </li>
+ <li>
+ Jakob Frank (C-P)
+ </li>
+ <li>
+ Nandana Mihindukulasooriya (C-P)
+ </li>
+ <li>
+ Rupert Westenthaler (C-P)
+ </li>
+ <li>
+ Sebastian Schaffert (C-P)
+ </li>
+ <li>
+ Sergio Fernández (C-P)
+ </li>
+ <li>
+ Thomas Kurz (C-P)
+ </li>
+ </ul>
+ <p>
+ <strong>C</strong> indicates a committer, <strong>P</strong> a PMC member, <strong>M</strong> an ASF member.
+ </p>
+
+ <h2>Incubation</h2>
+ <p>
+ Apache Marmotta is an effort undergoing incubation at The Apache Software Foundation (ASF),
+ sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects
+ until a further review indicates that the infrastructure, communications, and decision making
+ process have stabilized in a manner consistent with other successful ASF projects. While incubation
+ status is not necessarily a reflection of the completeness or stability of the code, it does indicate
+ that the project has yet to be fully endorsed by the ASF.
+ </p>
+
+ </section>
+
+{% endblock %}
Added: incubator/marmotta/site/trunk/content/resources/css/marmotta.css
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/resources/css/marmotta.css?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/content/resources/css/marmotta.css (added)
+++ incubator/marmotta/site/trunk/content/resources/css/marmotta.css Thu Jan 17 09:43:26 2013
@@ -0,0 +1,434 @@
+/*******************************************************************************
+Slate Theme for Github Pages
+by Jason Costello, @jsncostello
+*******************************************************************************/
+
+@import url(pygment_trac.css);
+
+/*******************************************************************************
+MeyerWeb Reset
+*******************************************************************************/
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font: inherit;
+ vertical-align: baseline;
+}
+
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+
+ol, ul {
+ list-style: none;
+}
+
+blockquote, q {
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+a:focus {
+ outline: none;
+}
+
+/*******************************************************************************
+Theme Styles
+*******************************************************************************/
+
+body {
+ box-sizing: border-box;
+ color:#373737;
+ background: #212121;
+ font-size: 16px;
+ font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
+ line-height: 1.5;
+ -webkit-font-smoothing: antialiased;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ margin: 10px 0;
+ font-weight: 700;
+ color:#222222;
+ font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
+ letter-spacing: -1px;
+}
+
+h1 {
+ font-size: 36px;
+ font-weight: 700;
+}
+
+h2 {
+ padding-bottom: 10px;
+ font-size: 32px;
+ background: url('../images/bg_hr.png') repeat-x bottom;
+}
+
+h3 {
+ font-size: 24px;
+}
+
+h4 {
+ font-size: 21px;
+}
+
+h5 {
+ font-size: 18px;
+}
+
+h6 {
+ font-size: 16px;
+}
+
+p {
+ margin: 10px 0 15px 0;
+}
+
+footer p {
+ color: #f2f2f2;
+}
+
+a {
+ text-decoration: none;
+ color: #c43187;
+ text-shadow: none;
+
+ transition: color 0.5s ease;
+ transition: text-shadow 0.5s ease;
+ -moz-transition: color 0.5s ease;
+ -moz-transition: text-shadow 0.5s ease;
+ -o-transition: color 0.5s ease;
+ -o-transition: text-shadow 0.5s ease;
+ -ms-transition: color 0.5s ease;
+ -ms-transition: text-shadow 0.5s ease;
+}
+
+#main_content a:hover {
+ color: #ffffff;
+ background-color: #c43187;
+}
+
+footer a:hover {
+ color: #ffffff;
+ background-color: #c43187;
+ text-shadow: #0090ff 0px 0px 2px;
+}
+
+em {
+ font-style: italic;
+}
+
+strong {
+ font-weight: bold;
+}
+
+img {
+ position: relative;
+ margin: 0 auto;
+ max-width: 739px;
+ border: 1px solid #ebebeb;
+
+ box-shadow: 0 0 5px #ebebeb;
+ -webkit-box-shadow: 0 0 5px #ebebeb;
+ -moz-box-shadow: 0 0 5px #ebebeb;
+ -o-box-shadow: 0 0 5px #ebebeb;
+ -ms-box-shadow: 0 0 5px #ebebeb;
+}
+
+pre, code {
+ width: 100%;
+ color: #222;
+ background-color: #fff;
+
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+ font-size: 14px;
+
+ border-radius: 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+
+ white-space: pre-wrap;
+ white-space: -moz-pre-wrap;
+ white-space: -pre-wrap;
+ white-space: -o-pre-wrap;
+ word-wrap: break-word;
+}
+
+pre {
+ width: 100%;
+ display: table;
+ padding: 10px;
+ box-shadow: 0 0 10px rgba(0,0,0,.1);
+}
+
+code {
+ padding: 3px;
+ margin: 0 3px;
+ box-shadow: 0 0 10px rgba(0,0,0,.1);
+}
+
+pre code {
+ box-shadow: none;
+}
+
+blockquote {
+ color: #666;
+ margin-bottom: 20px;
+ padding: 0 0 0 20px;
+ border-left: 3px solid #bbb;
+}
+
+ul, ol, dl {
+ margin-bottom: 15px
+}
+
+ul li {
+ list-style: inside;
+ padding-left: 20px;
+}
+
+ol li {
+ list-style: decimal inside;
+ padding-left: 20px;
+}
+
+dl dt {
+ font-weight: bold;
+}
+
+dl dd {
+ padding-left: 20px;
+ font-style: italic;
+}
+
+dl p {
+ padding-left: 20px;
+ font-style: italic;
+}
+
+hr {
+ height: 1px;
+ margin-bottom: 5px;
+ border: none;
+ background: url('../images/bg_hr.png') repeat-x center;
+}
+
+table {
+ border: 1px solid #373737;
+ margin-bottom: 20px;
+ text-align: left;
+ }
+
+th {
+ font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ padding: 10px;
+ background: #373737;
+ color: #fff;
+ }
+
+td {
+ padding: 10px;
+ border: 1px solid #373737;
+ }
+
+form {
+ background: #f2f2f2;
+ padding: 20px;
+}
+
+img {
+ max-width: 100%;
+}
+
+/*******************************************************************************
+Full-Width Styles
+*******************************************************************************/
+
+.outer {
+ width: 100%;
+}
+
+.inner {
+ position: relative;
+ max-width: 1000px;
+ padding: 20px 10px;
+ margin: 0 auto;
+}
+
+#incubator_banner {
+ display: block;
+ position: absolute;
+ top:0;
+ right: 10px;
+ z-index: 0;
+ color: #fff;
+ /*background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;*/
+ font-weight: 700;
+ border-bottom-left-radius: 2px;
+ border-bottom-right-radius: 2px;
+}
+
+#incubator_banner > a > img {
+ margin-top: 0;
+ padding: 0;
+}
+
+#header_wrap {
+ background: #212121;
+ background: -moz-linear-gradient(top, #373737, #212121);
+ background: -webkit-linear-gradient(top, #373737, #212121);
+ background: -ms-linear-gradient(top, #373737, #212121);
+ background: -o-linear-gradient(top, #373737, #212121);
+ background: linear-gradient(top, #373737, #212121);
+}
+
+#header_wrap .inner {
+ padding: 50px 10px 30px 10px;
+}
+
+#project_title {
+ margin: 0;
+ color: #fff;
+ font-size: 42px;
+ font-weight: 700;
+ text-shadow: #111 0px 0px 10px;
+}
+
+#project_tagline {
+ color: #fff;
+ font-size: 24px;
+ font-weight: 300;
+ background: none;
+ text-shadow: #111 0px 0px 10px;
+}
+
+#downloads {
+ position: absolute;
+ width: 210px;
+ z-index: 10;
+ bottom: -40px;
+ right: 0;
+ height: 70px;
+ background: url('../images/icon_download.png') no-repeat 0% 90%;
+}
+
+.zip_download_link {
+ display: block;
+ float: right;
+ width: 90px;
+ height:70px;
+ text-indent: -5000px;
+ overflow: hidden;
+ background: url(../images/sprite_download.png) no-repeat bottom left;
+}
+
+.tar_download_link {
+ display: block;
+ float: right;
+ width: 90px;
+ height:70px;
+ text-indent: -5000px;
+ overflow: hidden;
+ background: url(../images/sprite_download.png) no-repeat bottom right;
+ margin-left: 10px;
+}
+
+.zip_download_link:hover {
+ background: url(../images/sprite_download.png) no-repeat top left;
+}
+
+.tar_download_link:hover {
+ background: url(../images/sprite_download.png) no-repeat top right;
+}
+
+#main_content_wrap {
+ background: #f2f2f2;
+ border-top: 1px solid #111;
+ border-bottom: 1px solid #111;
+}
+
+#main_content {
+ padding-top: 40px;
+}
+
+#footer_wrap {
+ background: #212121;
+ font-size: 0.8em;
+ text-align: right;
+}
+
+
+
+/*******************************************************************************
+Small Device Styles
+*******************************************************************************/
+
+@media screen and (max-width: 480px) {
+ body {
+ font-size:14px;
+ }
+
+ #downloads {
+ display: none;
+ }
+
+ .inner {
+ min-width: 320px;
+ max-width: 480px;
+ }
+
+ #project_title {
+ font-size: 32px;
+ }
+
+ h1 {
+ font-size: 28px;
+ }
+
+ h2 {
+ font-size: 24px;
+ }
+
+ h3 {
+ font-size: 21px;
+ }
+
+ h4 {
+ font-size: 18px;
+ }
+
+ h5 {
+ font-size: 14px;
+ }
+
+ h6 {
+ font-size: 12px;
+ }
+
+ code, pre {
+ min-width: 320px;
+ max-width: 480px;
+ font-size: 11px;
+ }
+
+}
Added: incubator/marmotta/site/trunk/content/resources/img/apache-incubator-logo.png
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/resources/img/apache-incubator-logo.png?rev=1434601&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/marmotta/site/trunk/content/resources/img/apache-incubator-logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/marmotta/site/trunk/content/resources/img/apache-marmotta.png
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/resources/img/apache-marmotta.png?rev=1434601&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/marmotta/site/trunk/content/resources/img/apache-marmotta.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/marmotta/site/trunk/data/contributors.csv
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/data/contributors.csv?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/data/contributors.csv (added)
+++ incubator/marmotta/site/trunk/data/contributors.csv Thu Jan 17 09:43:26 2013
@@ -0,0 +1,10 @@
+andy
+fchrist
+nandana
+wikier
+sschaffert
+rwesten
+dglachs
+jakob
+tkurz
+
Added: incubator/marmotta/site/trunk/lib/DS.pm
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/lib/DS.pm?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/lib/DS.pm (added)
+++ incubator/marmotta/site/trunk/lib/DS.pm Thu Jan 17 09:43:26 2013
@@ -0,0 +1,50 @@
+package DS;
+
+use strict;
+use warnings;
+use XML::Simple;
+
+sub contributors {
+ my $xml = `java -Dlog=false -Doutput=xml -Dcache=true -cp lib/helper.jar org.apache.cms.tools.GenerateContributorContent data/contributors.csv`;
+
+ my $parser = XML::Simple->new();
+ my $data = $parser->XMLin($xml, KeyAttr => { contirbutor => 'id' });
+
+ my @contributors;
+ foreach my $c (@{$data->{contributor}}) {
+ push @contributors, {
+ id => $c->{id},
+ name => $c->{name},
+ twitter => $c->{twitter},
+ github => $c->{github},
+ gravatarHome => $c->{gravatarHome},
+ gravatarImage => $c->{gravatarImage},
+ info => $c->{info},
+ site => $c->{site}
+ };
+ }
+
+ return \@contributors;
+}
+
+1;
+
+=head1 LICENSE
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership. The
+ ASF licenses this file to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance with the
+ License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations
+ under the License.
+
+=cut
+
Added: incubator/marmotta/site/trunk/lib/helper.jar
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/lib/helper.jar?rev=1434601&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/marmotta/site/trunk/lib/helper.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/marmotta/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/lib/path.pm?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/lib/path.pm (added)
+++ incubator/marmotta/site/trunk/lib/path.pm Thu Jan 17 09:43:26 2013
@@ -0,0 +1,48 @@
+package path;
+
+use DS;
+
+# taken from django's url.py
+
+our @patterns = (
+
+ [qr!^/index\.html$!, interpreted => { template => "marmotta-markdown.html" }],
+ [qr!^/contributors\.html$!, interpreted => {
+ headers => { title => "Contributors" },
+ template => "marmotta-markdown.html",
+ contributors => DS->contributors
+ }
+ ],
+
+ [qr!\.md(text)?$!, basic => { template => "marmotta-markdown.html" }],
+
+ [qr!/sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
+) ;
+
+# for specifying interdependencies between files
+
+our %dependencies = (
+ "/sitemap.html" => [ grep s!^content!!, glob "content/*.mdtext" ],
+);
+
+1;
+
+=head1 LICENSE
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
Added: incubator/marmotta/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/lib/view.pm?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/lib/view.pm (added)
+++ incubator/marmotta/site/trunk/lib/view.pm Thu Jan 17 09:43:26 2013
@@ -0,0 +1,215 @@
+package view;
+
+#
+# BUILD CONSTRAINT: all views must return $content, $extension.
+# additional return values (as seen below) are optional. However,
+# careful use of symlinks and dependency management in path.pm can
+# resolve most issues with this constraint.
+#
+
+use strict;
+use warnings;
+use Dotiac::DTL qw/Template *TEMPLATE_DIRS/;
+use Dotiac::DTL::Addon::markup;
+use Dotiac::DTL::Value;
+use Dotiac::DTL::Filter;
+use XML::Simple;
+use Data::Dumper;
+use Text::Markdown qw( markdown );
+use ASF::Util qw/read_text_file/;
+
+push @TEMPLATE_DIRS, "templates";
+
+
+sub interpreted {
+ my %args = @_;
+ my $template = "content$args{path}";
+
+ print "interpreted -> $template\n";
+
+ $args{breadcrumbs} = breadcrumbs($args{path});
+
+ my $page_path = $template;
+
+ $page_path =~ s/\.[^.]+$/.page/;
+ if (-d $page_path) {
+ for my $f (grep -f, glob "$page_path/*.mdtext") {
+ $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+ $args{$1} = {};
+ read_text_file $f, $args{$1};
+ }
+ }
+
+ return Template($template)->render(\%args), html => \%args;
+}
+
+# A "basic" view, which takes 'template' and 'path' parameters.
+
+sub basic {
+ my %args = @_;
+ my $filepath = "content$args{path}";
+
+ print "basic $filepath";
+
+ read_text_file($filepath, \%args);
+
+ $args{path} =~ s/\.mdtext$/\.html/;
+ $args{base} = _base($args{path});
+ $args{breadcrumbs} = _breadcrumbs($args{path}, $args{base});
+
+ my $template_path = "templates/$args{template}";
+ my @includes = ($args{content} =~ m/{include:([^ ]+?)}/g);
+
+ foreach my $include (@includes) {
+
+ next unless ( -e "content/$include");
+
+ my %a = ();
+
+ read_text_file("content/$include", \%a);
+ my $text = $a{content};
+ $args{headers}{title} = $a{headers}{title} unless $args{headers}{title};
+
+ # If the file to be included is in a child directory, resolve all the links
+ # in the included content to be relative to this document
+ if ($include =~ m,/,) {
+ my $ipath = $include;
+ $ipath =~ s,/[^/]*$,,;
+ $text =~ s,(\[[^[]+])\(([^/][^)]+)\),$1($ipath/$2),g;
+ }
+
+ $args{content} =~ s/{include:$include}/$text/g;
+ }
+
+ print " - rendering";
+
+ my $rendered = Dotiac::DTL->new($template_path)->render(\%args);
+
+ print " - complete\n";
+
+ return ($rendered, 'html', \%args);
+}
+
+
+sub sitemap {
+ my %args = @_;
+ my $template = "content$args{path}";
+ $args{breadcrumbs} .= breadcrumbs($args{path});
+ my $dir = $template;
+ $dir =~ s!/[^/]+$!!;
+ my %data;
+ for (map "content$_", @{$path::dependencies{$args{path}}}) {
+ if (-f and /\.mdtext$/) {
+ my $file = $_;
+ $file =~ s/^content//;
+ no warnings 'once';
+ for my $p (@path::patterns) {
+ my ($re, $method, $args) = @$p;
+ next unless $file =~ $re;
+ my $s = view->can($method) or die "Can't locate method: $method\n";
+ my ($content, $ext, $vars) = $s->(path => $file, %$args);
+ $file =~ s/\.mdtext$/.$ext/;
+ $data{$file} = $vars;
+ last;
+ }
+ }
+ }
+
+ my $content = "";
+
+ for (sort keys %data) {
+ $content .= "- [$data{$_}->{headers}->{title}]($_)\n";
+ for my $hdr (grep /^#/, split "\n", $data{$_}->{content}) {
+ $hdr =~ /^(#+)\s+([^#]+)?\s+\1\s+\{#([^}]+)\}$/ or next;
+ my $level = length $1;
+ $level *= 4;
+ $content .= " " x $level;
+ $content .= "- [$2]($_#$3)\n";
+ }
+ }
+ $args{content} = $content;
+ return Template($template)->render(\%args), html => \%args;
+}
+
+sub breadcrumbs {
+ my @path = split m!/!, shift;
+ pop @path;
+ my @rv;
+ my $relpath = "";
+ for (@path) {
+ $relpath .= "$_/";
+ $_ ||= "Home";
+ push @rv, qq(<a href="$relpath">\u$_</a>);
+ }
+ return join " » ", @rv;
+}
+
+sub _breadcrumbs {
+ my $path = shift;
+ my $base = shift;
+
+ my $index = "$base/index.html";
+ $index =~ s,/+,/,g;
+
+ my @breadcrumbs = (
+ qq|<a href="$index">Home</a>|,
+ );
+ my @path_components = split( m!/!, $path );
+ pop @path_components;
+
+ my $relpath = $base;
+
+
+ for (@path_components) {
+ $relpath .= "$_/";
+ $relpath =~ s,/+,/,g;
+ next unless $_;
+
+ my @names = split("-", $_);
+ my $name = "";
+ for my $n (@names) {
+ $name .= ucfirst($n) . " ";
+ }
+ $name =~ s/ *$//;
+ push @breadcrumbs, qq(<a href="$relpath">\u$name</a>);
+ }
+ return join " » ", @breadcrumbs;
+}
+
+sub _base {
+ my $path = shift;
+
+ my @path_components = split( m!/!, $path );
+ pop @path_components;
+ pop @path_components;
+
+ my $rel = "./";
+
+ for (@path_components) {
+ $rel .= "../";
+ }
+
+ return $rel;
+}
+
+1;
+
+=head1 LICENSE
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
Added: incubator/marmotta/site/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/pom.xml?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/pom.xml (added)
+++ incubator/marmotta/site/trunk/pom.xml Thu Jan 17 09:43:26 2013
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>10</version>
+ </parent>
+
+ <groupId>org.apache.marmotta</groupId>
+ <artifactId>marmotta-site</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <name>Apache Marmotta Site</name>
+ <description>Files for the Marmotta site (Apache CMS)</description>
+
+ <url>http://marmotta.incubator.apache.org</url>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>content</directory>
+ </resource>
+ <resource>
+ <directory>templates</directory>
+ </resource>
+ </resources>
+ </build>
+
+</project>
+
Added: incubator/marmotta/site/trunk/templates/marmotta-markdown.html
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/templates/marmotta-markdown.html?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/templates/marmotta-markdown.html (added)
+++ incubator/marmotta/site/trunk/templates/marmotta-markdown.html Thu Jan 17 09:43:26 2013
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html lang="en">
+
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="marmotta-generate-pages">
+ <meta name="author" content="wikier">
+
+ <title>Apache Marmotta (incubating) - {% block title %}{{ headers.title }}{% endblock %}</title>
+
+ {% if headers.atom %}
+ <link rel="alternate" href="{{ headers.atom.url }}"
+ type="application/atom+xml" title="{{ headers.atom.title }}" />
+ {% endif %}
+
+ {% if headers.base %}<base href="{{ headers.base }}" />{% endif %}
+ {% if headers.notice %}<!-- {{ headers.notice }} -->{% endif %}
+
+ {% if headers.css %}<link rel="stylesheet" href="{{base}}resources/css/{{ headers.css }}" />{% endif %}
+ <link href="{{base}}resources/css/marmotta.css" rel="stylesheet" />
+ </head>
+
+ <body>
+
+ <div id="header_wrap" class="outer">
+ <header class="inner">
+ <a id="incubator_banner" href="http://incubator.apache.org/"><img src="{{base}}resources/img/apache-incubator-logo.png" width="229" height="57" style="border: 0; box-shadow: none;" /></a>
+ <!--<img src="{{base}}resources/img/apache-marmotta.png" width="500" height="227" style="border: 0; box-shadow: none;" />-->
+ <h1 id="project_title">Apache Marmotta (incubating)</h1>
+ <h2 id="project_tagline">a Linked Data platform for industry-strength installations</h2>
+ </header>
+ </div>
+
+ <div id="main_content_wrap" class="outer">
+ <div class="page-title">
+ <h2>{% block tagline %}{{ headers.title }}{% endblock %}</h2>
+ </div>
+ {% block content %}{{ content|markdown }}{% endblock %}
+ </div>
+
+ <div id="footer_wrap" class="outer">
+ <footer class="inner">
+ <p class="copyright">Apache Software Foundation © 2012, licensed under the Apache License, version 2.0.</p>
+ <p>Apache Marmotta, Marmotta, Apache, the Apache feather logo and the Apache Marmotta logo are trademarks of The Apache Software Foundation.
+ <p>Based on the Slate theme for GitHub Pages.</p>
+ </footer>
+ </div>
+
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+
+ </body>
+
+</html>
+
Added: incubator/marmotta/site/trunk/templates/sitemap.html
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/templates/sitemap.html?rev=1434601&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/templates/sitemap.html (added)
+++ incubator/marmotta/site/trunk/templates/sitemap.html Thu Jan 17 09:43:26 2013
@@ -0,0 +1 @@
+{% extends "marmotta-markdown.html" %}