You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2015/04/14 15:13:05 UTC
[30/87] [abbrv] [partial] clerezza git commit: CLEREZZA-966: removed
platform. prefix of folder names
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/resources/documentation/style/style.css
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/resources/documentation/style/style.css b/platform/dashboard/platform.dashboard.core/src/site/resources/documentation/style/style.css
new file mode 100644
index 0000000..ff49a4d
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.core/src/site/resources/documentation/style/style.css
@@ -0,0 +1,421 @@
+/*
+ *
+ * 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.
+ *
+*/
+
+/*---------------------------------------------------------------------------
+ * Two- and three-column layout
+ */
+
+#banner {
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ height: 116px;
+}
+
+#left {
+ position: absolute;
+ z-index: 2;
+ left: 8px;
+ width: 184px;
+ top: 125px;
+ bottom: 8px;
+ margin: 0px;
+ padding: 0px;
+}
+
+#right {
+ position: absolute;
+ z-index: 1;
+ right: 8px;
+ width: 184px;
+ top: 125px;
+ bottom: 8px;
+ margin: 0px;
+ padding: 0px;
+}
+
+.Content3Column {
+ position: absolute;
+ top: 125px;
+ bottom: 8px;
+ left: 208px;
+ right: 216px;
+}
+
+.Content2Column {
+ position: absolute;
+ top: 125px;
+ bottom: 8px;
+ left: 208px;
+ right: 16px;
+}
+
+#center {
+ z-index: 3;
+ margin: 0px;
+ border: none;
+ padding-bottom: 8px;
+}
+
+
+/*---------------------------------------------------------------------------
+ * Default element styles
+ */
+
+body {
+ padding: 0px;
+ margin: 0px;
+ border: 0px;
+
+ font-family: helvetica, arial, sans-serif;
+ font-size: 12px;
+
+ background-color: white;
+ color: black;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ margin: 0px;
+ border: 0px;
+ padding: 0px;
+ font-weight: normal;
+}
+
+a:link { color: #008DA8; }
+a:active { color: #FE5400; }
+a:hover { color: #FE5400; }
+a:visited { color: black; }
+
+iframe {
+ width:100%;
+ height: 800px;
+ border: 0px;
+}
+
+img {
+ border: 0px;
+ padding: 0px;
+ margin: 0px;
+}
+
+p {
+ border: 0px;
+ padding: 0px;
+ margin: 0px;
+ margin-bottom: 10px;
+}
+
+blockquote {
+ margin-bottom: 10px;
+}
+
+td {
+ font-size: 12px;
+ padding: 2px;
+}
+
+tr.a {
+ background-color: #e0e0e0;
+}
+tr.b {
+ background-color: #ffffff;
+}
+
+th {
+ font-size: 12px;
+ font-weight: bold;
+ white-space: nowrap;
+ padding: 2px;
+}
+
+th.Row {
+ text-align: left;
+ vertical-align: top;
+}
+
+ul, ol {
+ border: 0px;
+ padding: 0px;
+ margin-top: 0px;
+ margin-bottom: 12px;
+ margin-left: 20px;
+}
+
+
+/*---------------------------------------------------------------------------
+ * Page banner
+ */
+
+#banner {
+ margin: 0px;
+ border: 0px;
+ border-bottom: 1px solid #008DA8;
+ padding: 0px;
+ background-color: #e0e0e0;
+ color: #008DA8;
+ vertical-align: bottom;
+}
+
+#banner a { text-decoration: none; }
+#banner a:visited { color: #008DA8; }
+#banner a:hover { color: #FE5400; }
+#banner a:active { color: #FE5400; }
+
+#logo {
+ position: absolute;
+ top: 5px;
+ left: 8px;
+}
+
+#versions {
+ position: absolute;
+ width: auto;
+ right: 0px;
+ top: 0px;
+ margin: 8px;
+ font-weight: normal;
+}
+
+/*---------------------------------------------------------------------------
+ * Page content
+ */
+
+#content {
+ margin: 0px;
+ background-color: white;
+ color: black;
+ height: 100%;
+}
+
+#content h1 {
+ width: 100%;
+ font-size: 18px;
+ background-color: #008DA8;
+ color: white;
+ padding: 2px;
+ padding-left: 6px;
+ margin-top: 24px;
+ margin-bottom: 12px;
+}
+
+#content .FirstChild { /* IE doesn't understand first-child pseudoelement */
+ margin-top: 0px;
+}
+
+#content a { text-decoration: underline; }
+#content a:link { color: #008DA8; }
+#content a:visited { color: #008DA8; }
+#content a:active { color: #FE5400; }
+#content a:hover { color: #FE5400; }
+
+#content h2 {
+ margin-top: 24px;
+ border-top: 1px solid #008DA8;
+ margin-bottom: 16px;
+ font-size: 15px;
+ font-weight: bold;
+ background-color: #e0e0e0;;
+ padding: 2px;
+}
+
+#content li {
+ margin-bottom: 6px;
+}
+
+#content th {
+ background-color: #e0e0e0;
+}
+
+#content td {
+
+}
+
+.Source pre {
+ padding: 4px;
+ font-family: courier new, monospace;
+ font-size: 11px;
+ border: 1px solid #008DA8;
+ background-color: #e0e0e0;
+ color: black;
+}
+
+.Source:before {
+ margin: 0px;
+ padding: 0px;
+ border: 0px;
+ font-size: inherit;
+ line-spacing: 100%;
+}
+
+.highlight {
+ background-color: #e0e0e0;
+ border: 1px dotted #008DA8;
+ padding: 5px;
+}
+
+/* The following are for images, but can also apply to div's containing images. */
+
+#content .Float {
+ float: right;
+ margin-left: 8px;
+ margin-right: 0px;
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+
+#content .Diagram {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+
+
+#content .Inline {
+ display: inline;
+}
+
+.RuleOfThumb {
+ font-weight: bold;
+}
+
+/*---------------------------------------------------------------------------
+ * Side panels
+ */
+
+.SidePanel {
+ background-color: white;
+ padding: 0px;
+ font-size: 11px;
+}
+
+.SidePanel h1 {
+ margin: 0px;
+ border: 0px;
+ padding: 4px;
+
+ color: #008DA8;
+
+ font-size: 12px;
+ font-weight: bold;
+}
+
+
+.SidePanel a { text-decoration: none; }
+.SidePanel a:link { color: #000000; }
+.SidePanel a:visited { color: #000000; }
+.SidePanel a:active { color: #FE5400; }
+.SidePanel a:hover { color: #FE5400; }
+
+/*---------------------------------------------------------------------------
+ * Menus
+ */
+
+.MenuGroup {
+ border-left: 1px solid #A3DAE6;
+ border-top: 1px solid #A3DAE6;
+ border-bottom: 1px solid white; /* IE work-around */
+
+ margin-bottom: 8px;
+ background-color: white;
+ color: #008DA8;
+}
+
+.MenuGroup ul {
+ margin: 0px;
+ padding-left: 4px;
+ list-style-type: none;
+}
+
+.MenuGroup li {
+ padding: 2px;
+}
+
+.MenuGroup .currentLink {
+/* background-color: #060;*/
+ background-color: #e0e0e0;
+ color: #008DA8;
+}
+
+
+/*---------------------------------------------------------------------------
+ * News panel
+ */
+
+.NewsGroup {
+ border-left: 1px solid #A3DAE6;
+ border-top: 1px solid #A3DAE6;
+ border-bottom: 1px solid white; /* IE workaround */
+ margin-bottom: 8px;
+
+ color: #008DA8;
+}
+
+.NewsItem {
+ margin: 4px;
+}
+
+.NewsDate {
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+}
+
+.NewsText {
+ padding: 0px;
+ margin: 0px;
+ margin-bottom: 8px;
+}
+
+.NewsText a { text-decoration: underline; }
+.NewsText a:link { color: #008DA8; }
+.NewsText a:visited { color: #008DA8; }
+.NewsText a:active { color: #FE5400; }
+.NewsText a:hover { color: #FE5400; }
+
+.NewsMore {
+ font-size: smaller;
+ margin: 4px;
+ margin-top: 8px;
+ text-align: left;
+}
+
+.NewsGroup td {
+ font-size: 12px;
+}
+
+/*---------------------------------------------------------------------------
+ * Document meta-information
+ */
+
+.Meta {
+ margin-top: 64px;
+ font-size: smaller;
+ color: #008DA8;
+ text-align: right;
+}
+
+.Meta a { text-decoration: underline; }
+.Meta a:link { color: #008DA8; }
+.Meta a:visited { color: #008DA8; }
+.Meta a:active { color: #FE5400; }
+.Meta a:hover { color: #FE5400; }
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/resources/images/clerezza.png
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/resources/images/clerezza.png b/platform/dashboard/platform.dashboard.core/src/site/resources/images/clerezza.png
new file mode 100644
index 0000000..cb0efb0
Binary files /dev/null and b/platform/dashboard/platform.dashboard.core/src/site/resources/images/clerezza.png differ
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/site.xml
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/site.xml b/platform/dashboard/platform.dashboard.core/src/site/site.xml
new file mode 100644
index 0000000..8d5a4cb
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.core/src/site/site.xml
@@ -0,0 +1,30 @@
+<?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>
+ <body>
+ <menu name="Documentation">
+ <item name="Usage" href="documentation/usage.xhtml"/>
+ </menu>
+ </body>
+</project>
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/xsite/content/sitemap.xml
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/xsite/content/sitemap.xml b/platform/dashboard/platform.dashboard.core/src/site/xsite/content/sitemap.xml
new file mode 100644
index 0000000..1df89fc
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.core/src/site/xsite/content/sitemap.xml
@@ -0,0 +1,26 @@
+<!--
+
+ 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.
+
+-->
+<sitemap>
+ <section>
+ <name>Documentation</name>
+ <page>usage.xhtml</page>
+ </section>
+</sitemap>
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/xsite/content/usage.xhtml
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/xsite/content/usage.xhtml b/platform/dashboard/platform.dashboard.core/src/site/xsite/content/usage.xhtml
new file mode 100644
index 0000000..f7fee85
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.core/src/site/xsite/content/usage.xhtml
@@ -0,0 +1,70 @@
+<?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.
+ */
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
+ <head>
+ <title>Usage: How to use the dashboard service</title>
+ </head>
+ <body>
+ <h1>Usage: How to use the dashboard service</h1>
+ <p>Author: Tsuyoshi Ito - clerezza.org</p>
+ <p>Date: June 7, 2009</p>
+ <h2 id="access">Using the service</h2>
+ <p>
+ A JaxRs resource can reference the service <code>org.apache.clerezza.platform.dashboard.DashBoard</code> and
+ can use the Method createGraphNodeWithDashBoardMenu to add the dashboard menu to a created graph
+ of the JaxRs Resource.
+ <br />
+ <br />
+ JaxRs resources can register themselves to the dashboard by adding the service properties:
+ <ul>
+ <li><code>@scr.property name="org.apache.clerezza.platform.dashboard.visible" type="Boolean" value="true""org.apache.clerezza.platform.dashboard.visible" type="Boolean" value="true", </code></li>
+ <li><code>@scr.property type="String" value="Name of module/bundle" description="Specifies the label of the menu entry."</code>,</li>
+ <li><code>@scr.property type="String" value="XY" description="Specifies the the group label"</code>, and </li>
+ <li><code>@scr.property type="Integer" value="0" description="Specifies the index of the entry in the menu"</code>. </li>
+ </ul>
+ <br />,
+ <br />
+
+ </p>
+ <h2 id="access">Add dashboard to seedsnipe template</h2>
+ <p>
+ Insert the following javascript references <code>/jquery/jquery-1.3.2.min.js</code> and <code>/jquery/jquery.menu.js</code>.
+
+ After the tag <body> of your template insert the follwing code:
+ <div id="header">
+
+ ${render(dhb:includeDashBoardMenu, "naked")}
+
+
+ <h1>Titel of Bundle</h1>
+
+ </div>
+ <br />
+ <br />
+ </p>
+ <p>
+ That's all. Enjoy.
+ </p>
+ </body>
+</html>
+
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.core/src/site/xsite/templates/skin.html
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.core/src/site/xsite/templates/skin.html b/platform/dashboard/platform.dashboard.core/src/site/xsite/templates/skin.html
new file mode 100644
index 0000000..6ce9762
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.core/src/site/xsite/templates/skin.html
@@ -0,0 +1,71 @@
+<!--
+
+ 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.
+
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>clerezza.org - ${title}</title>
+ <link rel="stylesheet" type="text/css" href="style/style.css"/>
+ ${head}
+ </head>
+ <body>
+
+ <div id="banner">
+ <a href="http://clerezza.org/">
+ <img id="logo" src="../images/clerezza.png" alt="clerezza.org"/>
+ </a><br />
+ </div>
+
+ <div id="center" class="${centerClass}">
+ <div id="content">
+ <!-- <h1 class="FirstChild">${title}</h1> -->
+ ${body}
+ <p>Copyright (c) 2009 trialox.org (trialox AG, Switzerland)</p>
+ <br /><br />
+ </div>
+ </div>
+
+ <div class="SidePanel" id="left">
+ <#list sitemap.sections as section>
+ <div class="MenuGroup">
+ <h1>${section.name}</h1>
+ <ul>
+ <#list section.entries as entry>
+ <#if entry = page>
+ <li class="currentLink">${entry.title}</li>
+ <#else>
+ <li><a href="${entry.href}">${entry.title}</a></li>
+ </#if>
+ </#list>
+ </ul>
+ </div>
+ </#list>
+ <div class="MenuGroup">
+ <h1>Project Site</h1>
+ <ul>
+
+ <li><a href="../index.html">Back to project site</a></li>
+ </ul>
+ </div>
+ </div>
+
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.ontologies/LICENSE
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.ontologies/LICENSE b/platform/dashboard/platform.dashboard.ontologies/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.ontologies/LICENSE
@@ -0,0 +1,201 @@
+ 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.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.ontologies/pom.xml
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.ontologies/pom.xml b/platform/dashboard/platform.dashboard.ontologies/pom.xml
new file mode 100644
index 0000000..037753d
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.ontologies/pom.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><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">
+<!--
+
+ 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.
+
+-->
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.dashboard</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.dashboard.ontologies</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+ <name>Clerezza - Platform Dashboard Ontologies</name>
+ <description>
+ Dashboard Ontologies
+ </description>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>rdf.core</artifactId>
+ <version>0.14</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>maven-ontologies-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <configuration>
+ <resourcePath>${basedir}/src/main/resources</resourcePath>
+ <sources>
+ <source>${basedir}/target/generated-sources/main/java</source>
+ </sources>
+ </configuration>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <version>0.4</version>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/dashboard.rdf
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/dashboard.rdf b/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/dashboard.rdf
new file mode 100644
index 0000000..a1077c6
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/dashboard.rdf
@@ -0,0 +1,50 @@
+<?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.
+
+-->
+
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ xmlns:owl="http://www.w3.org/2002/07/owl#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:skos="http://www.w3.org/2008/05/skos#"
+>
+
+<!-- Ontology -->
+
+<owl:Ontology rdf:about="http://clerezza.org/2009/06/dashboard#">
+ <owl:versionInfo>Revision: 0.1</owl:versionInfo>
+ <dc:title xml:lang="en">
+ Clerezza Dashboard
+ </dc:title>
+</owl:Ontology>
+
+
+<!-- Classes -->
+
+<rdfs:Class rdf:about="http://clerezza.org/2009/06/dashboard#DashBoard">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
+ <rdfs:label xml:lang="en">Dashboard</rdfs:label>
+ <skos:definition xml:lang="en">A page containing information of the dashboard.</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/06/dashboard#" />
+</rdfs:Class>
+
+</rdf:RDF>
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/globalmenu.rdf
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/globalmenu.rdf b/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/globalmenu.rdf
new file mode 100644
index 0000000..846af57
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.ontologies/src/main/resources/org/apache/clerezza/platform/dashboard/ontologies/globalmenu.rdf
@@ -0,0 +1,87 @@
+<?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.
+
+-->
+
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ xmlns:owl="http://www.w3.org/2002/07/owl#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:skos="http://www.w3.org/2008/05/skos#"
+>
+
+<!-- Ontology -->
+
+<owl:Ontology rdf:about="http://clerezza.org/2009/11/global-menu#">
+ <owl:versionInfo>Revision: 0.1</owl:versionInfo>
+ <dc:title xml:lang="en">
+ Clerezza Global Menu
+ </dc:title>
+</owl:Ontology>
+
+
+<!-- Classes -->
+
+<rdfs:Class rdf:about="http://clerezza.org/2009/11/global-menu#MenuItem">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
+ <rdfs:label xml:lang="en">MenuItem</rdfs:label>
+ <skos:definition xml:lang="en">An item within a menu</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/11/globalMenu#" />
+</rdfs:Class>
+
+<rdfs:Class rdf:about="http://clerezza.org/2009/11/global-menu#Menu">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
+ <rdfs:label xml:lang="en">Menu</rdfs:label>
+ <skos:definition xml:lang="en">A labled menu with menu items and/or other
+ menus as children.</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/11/globalMenu#" />
+</rdfs:Class>
+
+<!-- Properties -->
+
+<rdf:Property rdf:about="http://clerezza.org/2009/11/global-menu#globalMenu">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
+ <rdfs:label xml:lang="en">globalMenu</rdfs:label>
+ <skos:definition xml:lang="en">Points to the rdf list containing menu items
+ and/or menus.</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/11/globalMenu#" />
+ <rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List" />
+</rdf:Property>
+
+<rdf:Property rdf:about="http://clerezza.org/2009/11/global-menu#children">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
+ <rdfs:label xml:lang="en">globalMenu</rdfs:label>
+ <skos:definition xml:lang="en">Points to an rdf list containing
+ the children of the subject.</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/11/globalMenu#" />
+ <rdfs:domain rdf:resource="http://clerezza.org/2009/11/global-menu#Menu" />
+ <rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List" />
+</rdf:Property>
+<rdf:Property rdf:about="http://clerezza.org/2009/11/global-menu#path">
+ <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
+ <rdfs:label xml:lang="en">path</rdfs:label>
+ <skos:definition xml:lang="en">Points to the URI path of the subject.</skos:definition>
+ <rdfs:isDefinedBy rdf:resource="http://clerezza.org/2009/11/globalMenu#" />
+ <rdfs:domain rdf:resource="http://clerezza.org/2009/11/global-menu#MenuItem" />
+ <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" />
+</rdf:Property>
+</rdf:RDF>
+
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.tests/LICENSE
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.tests/LICENSE b/platform/dashboard/platform.dashboard.tests/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.tests/LICENSE
@@ -0,0 +1,201 @@
+ 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.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.tests/pom.xml
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.tests/pom.xml b/platform/dashboard/platform.dashboard.tests/pom.xml
new file mode 100644
index 0000000..6e2a418
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.tests/pom.xml
@@ -0,0 +1,257 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><!--
+
+ 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">
+ <parent>
+ <artifactId>platform.dashboard</artifactId>
+ <groupId>org.apache.clerezza</groupId>
+ <version>0.4-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.dashboard.tests</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Clerezza - Platform Dashboard Tests</name>
+ <description>Tests for Dashboard in an OSGi container.</description>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>rdf.core</artifactId>
+ <scope>provided</scope>
+ <version>0.13-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>jaxrs.utils</artifactId>
+ <scope>provided</scope>
+ <version>0.7-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.typerendering.core</artifactId>
+ <scope>provided</scope>
+ <version>0.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.typerendering.ontologies</artifactId>
+ <scope>provided</scope>
+ <version>0.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.typerendering.scalaserverpages</artifactId>
+ <scope>provided</scope>
+ <version>0.4-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.typerendering.scala</artifactId>
+ <scope>provided</scope>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>rdf.scala.utils</artifactId>
+ <scope>provided</scope>
+ <version>0.4-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.graphprovider.content</artifactId>
+ <scope>provided</scope>
+ <version>0.7-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>rdf.utils</artifactId>
+ <scope>provided</scope>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>permissiondescriptions</artifactId>
+ <scope>provided</scope>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>utils</artifactId>
+ <scope>provided</scope>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza.ext</groupId>
+ <artifactId>org.json.simple</artifactId>
+ <scope>provided</scope>
+ <version>0.4-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.globalmenu.api</artifactId>
+ <scope>provided</scope>
+ <version>0.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.dashboard.ontologies</artifactId>
+ <scope>provided</scope>
+ <version>0.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>rdf.ontologies</artifactId>
+ <scope>provided</scope>
+ <version>0.12-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>templating</artifactId>
+ <scope>provided</scope>
+ <version>0.9-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>templating.seedsnipe</artifactId>
+ <scope>provided</scope>
+ <version>0.9-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>jsr311-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>jaxrs.extensions</artifactId>
+ <scope>provided</scope>
+ <version>0.6-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.wymiwyg</groupId>
+ <artifactId>wymiwyg-commons-core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>utils</artifactId>
+ <scope>provided</scope>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpcore-osgi</artifactId>
+ <scope>provided</scope>
+ </dependency>
+<!-- pax exam related stuff -->
+ <dependency>
+ <groupId>org.ops4j.pax.exam</groupId>
+ <artifactId>pax-exam</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.exam</groupId>
+ <artifactId>pax-exam-junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.exam</groupId>
+ <artifactId>pax-exam-container-default</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>servlet-api-2.5</artifactId>
+ <version>6.1.12</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza.ext</groupId>
+ <artifactId>com.ibm.icu</artifactId>
+ <scope>provided</scope>
+ <version>0.6-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>asm</groupId>
+ <artifactId>asm-all</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <!-- <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient-osgi</artifactId>
+ <version>4.0.1</version>
+ <scope>provided</scope>
+ </dependency> -->
+ <dependency>
+ <groupId>org.apache.clerezza.scala</groupId>
+ <artifactId>scala-library-osgi</artifactId>
+ <scope>provided</scope>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza.scala</groupId>
+ <artifactId>scala-compiler-osgi</artifactId>
+ <scope>provided</scope>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.clerezza.scala</groupId>
+ <artifactId>script-engine</artifactId>
+ <scope>provided</scope>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <!-- no sources here, preventing failing invocation -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase/>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.ops4j.pax.exam</groupId>
+ <artifactId>maven-paxexam-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <!-- <repositories>
+ <repository>
+ <id>codehaus-repository</id>
+ <name>Codehaus Repository</name>
+ <url>http://repository.codehaus.org</url>
+ </repository>
+ </repositories> -->
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/FelixContextualMenuGeneratorTest.java
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/FelixContextualMenuGeneratorTest.java b/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/FelixContextualMenuGeneratorTest.java
new file mode 100644
index 0000000..808f567
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/FelixContextualMenuGeneratorTest.java
@@ -0,0 +1,195 @@
+/*
+ * 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.
+ */
+package org.apache.clerezza.platform.dashboard.blackbox.osgi;
+
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.Option;
+import org.ops4j.pax.exam.junit.Configuration;
+import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+
+import static org.ops4j.pax.exam.CoreOptions.*;
+import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.*;
+import static org.ops4j.pax.exam.junit.JUnitOptions.*;
+
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import junit.framework.Assert;
+import org.apache.clerezza.platform.dashboard.GlobalMenuItemsProvider;
+import org.apache.clerezza.platform.dashboard.ontologies.GLOBALMENU;
+import org.apache.clerezza.platform.typerendering.UserContextProvider;
+import org.apache.clerezza.rdf.core.BNode;
+import org.apache.clerezza.rdf.core.Literal;
+import org.apache.clerezza.rdf.core.NonLiteral;
+import org.apache.clerezza.rdf.core.Resource;
+import org.apache.clerezza.rdf.core.Triple;
+import org.apache.clerezza.rdf.core.TripleCollection;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.impl.SimpleMGraph;
+import org.apache.clerezza.rdf.ontologies.RDF;
+import org.apache.clerezza.rdf.ontologies.RDFS;
+import org.apache.clerezza.rdf.utils.GraphNode;
+import org.apache.clerezza.rdf.utils.RdfList;
+import org.junit.Before;
+import org.junit.Test;
+import org.ops4j.pax.exam.Inject;
+import org.osgi.framework.BundleContext;
+
+import org.osgi.util.tracker.ServiceTracker;
+import org.wymiwyg.wrhapi.Handler;
+
+/**
+ *
+ * @author mir, reto
+ */
+@RunWith(JUnit4TestRunner.class)
+public class FelixContextualMenuGeneratorTest {
+
+ @Configuration
+ public static Option[] configuration() {
+ return options(
+ mavenConfiguration(),
+ dsProfile(),
+ configProfile(),
+ webProfile(),
+ junitBundles(),
+ frameworks(
+ felix()),
+ systemProperty("org.osgi.service.http.port").value(
+ Integer.toString(testHttpPort)));
+ }
+
+
+ protected final static int testHttpPort = 8976;
+ @Inject
+ private BundleContext bundleContext;
+
+ private boolean webServerExist;
+
+ @Before
+ public void registerServices() throws Exception {
+ System.out.println("@Before");
+ webServerExist = waitForWebserver();
+ if (webServerExist) {
+ waitFor(Handler.class, 10000);
+ bundleContext.registerService(GlobalMenuItemsProvider.class.getName(),
+ new GlobalMenuItemsProviderA(), null);
+ Thread.sleep(10000);
+ }
+ }
+
+ @Test
+ public void checkMenu() throws Exception {
+ Assert.assertTrue(webServerExist);
+ UserContextProvider contextProvider = (UserContextProvider)
+ waitFor(UserContextProvider.class, 300000);
+ Assert.assertTrue(contextProvider != null);
+ GraphNode node = new GraphNode(new BNode(), new SimpleMGraph());
+ contextProvider.addUserContext(node);
+ Iterator<Resource> iter = node.getObjects(GLOBALMENU.globalMenu);
+ Assert.assertTrue(iter.hasNext());
+ TripleCollection graph = node.getGraph();
+ RdfList list = new RdfList((NonLiteral)iter.next(), graph);
+ Assert.assertEquals(3, list.size());
+ Assert.assertEquals(GlobalMenuItemsProviderA.groupALabel,
+ getLabel(graph, list.get(0)));
+ Assert.assertEquals(GlobalMenuItemsProviderA.groupCLabel,
+ getLabel(graph, list.get(1)));
+ Assert.assertEquals(GlobalMenuItemsProviderA.implicitGroupBLabel,
+ getLabel(graph, list.get(2)));
+ Assert.assertEquals(GLOBALMENU.Menu, getRdfType(graph, list.get(0)));
+ Assert.assertEquals(GLOBALMENU.MenuItem, getRdfType(graph, list.get(1)));
+ Assert.assertEquals(GlobalMenuItemsProviderA.groupAPath,
+ getPath(graph, list.get(0)));
+ RdfList children = getChildren(graph, list.get(0));
+ Assert.assertEquals(2, children.size());
+ Assert.assertEquals(GlobalMenuItemsProviderA.itemA2Label,
+ getLabel(graph, children.get(0)));
+ Assert.assertEquals(GlobalMenuItemsProviderA.itemA1Label,
+ getLabel(graph, children.get(1)));
+ Assert.assertEquals(GlobalMenuItemsProviderA.itemA2Path,
+ getPath(graph, children.get(0)));
+ }
+
+ private String getLabel(TripleCollection graph, Resource res) {
+ Iterator<Triple> labels = graph.filter((NonLiteral) res, RDFS.label, null);
+ if (labels.hasNext()) {
+ return ((Literal) labels.next().getObject()).getLexicalForm();
+ } else {
+ return null;
+ }
+ }
+
+ private String getPath(TripleCollection graph, Resource res) {
+ Resource path = graph.filter((NonLiteral) res,
+ GLOBALMENU.path, null).next().getObject();
+ return ((Literal) path).getLexicalForm();
+ }
+
+ private RdfList getChildren(TripleCollection graph, Resource res) {
+ NonLiteral children = (NonLiteral) graph.filter((NonLiteral) res,
+ GLOBALMENU.children, null).next().getObject();
+ return new RdfList(children, graph);
+ }
+
+ private UriRef getRdfType(TripleCollection graph, Resource res) {
+ return (UriRef) graph.filter((NonLiteral) res, RDF.type, null).next().
+ getObject();
+ }
+
+ private Object waitFor(Class<?> aClass, long timeout)
+ throws InterruptedException {
+ System.out.println("waiting for a " + aClass);
+ ServiceTracker tracker = new ServiceTracker(bundleContext,
+ aClass.getName(), null);
+ tracker.open();
+ Object service = tracker.waitForService(timeout);
+ return service;
+ }
+
+ private boolean waitForWebserver() throws InterruptedException {
+ int j = 0;
+ try {
+ URL serverURL = new URL("http://localhost:" + testHttpPort + "/");
+ boolean succeded = false;
+ while (!succeded) {
+ try {
+ serverURL.openConnection().getInputStream();
+ } catch (FileNotFoundException ex) {
+ break;
+ } catch (IOException ex) {
+ System.out.println("waiting ("+ex+")");
+ Thread.sleep(3000);
+ if (j++ < 100) {
+ continue;
+ }
+ }
+ succeded = true;
+ }
+ } catch (MalformedURLException ex) {
+ Logger.getLogger(FelixContextualMenuGeneratorTest.class.getName())
+ .log(Level.SEVERE, null, ex);
+ }
+ return j < 100;
+ }
+}
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/GlobalMenuItemsProviderA.java
----------------------------------------------------------------------
diff --git a/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/GlobalMenuItemsProviderA.java b/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/GlobalMenuItemsProviderA.java
new file mode 100644
index 0000000..1ac96ab
--- /dev/null
+++ b/platform/dashboard/platform.dashboard.tests/src/test/java/org/apache/clerezza/platform/dashboard/blackbox/osgi/GlobalMenuItemsProviderA.java
@@ -0,0 +1,52 @@
+ /*
+ * 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.
+ */
+package org.apache.clerezza.platform.dashboard.blackbox.osgi;
+
+import java.util.HashSet;
+import java.util.Set;
+import org.apache.clerezza.platform.dashboard.GlobalMenuItem;
+import org.apache.clerezza.platform.dashboard.GlobalMenuItemsProvider;
+
+/**
+ *
+ * @author mir
+ */
+public class GlobalMenuItemsProviderA implements GlobalMenuItemsProvider{
+ public static String groupALabel = "MyGroupA";
+ public static String groupAPath = "test/pathA/";
+ public static String groupAId = "idGroupA";
+ public static String implicitGroupBLabel = "idGroupB";
+ public static String groupCLabel = "MyGroupC";
+ public static String itemA1Label = "MyLabelA1";
+ public static String itemA2Label = "MyLabelA2";
+ public static String itemA2Path = "test/pathA2/";
+
+
+ @Override
+ public Set<GlobalMenuItem> getMenuItems() {
+ Set<GlobalMenuItem> items = new HashSet<GlobalMenuItem>();
+ items.add(new GlobalMenuItem(groupAPath, groupAId, groupALabel, 5, null));
+ items.add(new GlobalMenuItem("test/pathC/", "idGroupC", groupCLabel, 5, null));
+ items.add(new GlobalMenuItem("test/pathA1/", "idLabelA1", itemA1Label, 2, groupAId));
+ items.add(new GlobalMenuItem(itemA2Path, "idLabelA2", itemA2Label, 7, groupAId));
+ items.add(new GlobalMenuItem("test/pathB1/", "idLabelB1", "MyLabelB1", 1, "idGroupB"));
+ items.add(new GlobalMenuItem("test/pathB2/", "idLabelB2", "MyLabelB2", 2, "idGroupB"));
+ return items;
+ }
+}
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/dashboard/pom.xml
----------------------------------------------------------------------
diff --git a/platform/dashboard/pom.xml b/platform/dashboard/pom.xml
new file mode 100644
index 0000000..c55db94
--- /dev/null
+++ b/platform/dashboard/pom.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><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">
+<!--
+
+ 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.
+
+-->
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>clerezza</artifactId>
+ <version>0.5</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <groupId>org.apache.clerezza</groupId>
+ <artifactId>platform.dashboard</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>Clerezza - Platform Dashboard</name>
+ <description>Provides a global contextual menu.</description>
+
+ <modules>
+ <module>platform.dashboard.ontologies</module>
+ <module>platform.dashboard.core</module>
+ <!-- disabled because of problems with pax-exam: <module>platform.dashboard.tests</module> -->
+ </modules>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/clerezza/blob/70220239/platform/documentation.viewer/LICENSE
----------------------------------------------------------------------
diff --git a/platform/documentation.viewer/LICENSE b/platform/documentation.viewer/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/platform/documentation.viewer/LICENSE
@@ -0,0 +1,201 @@
+ 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.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.