You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metamodel.apache.org by ka...@apache.org on 2013/07/31 10:32:05 UTC

svn commit: r1508770 - in /incubator/metamodel/site/trunk/content: css/metamodel.css css/prettify-metamodel.css index.html

Author: kaspersor
Date: Wed Jul 31 08:32:04 2013
New Revision: 1508770

URL: http://svn.apache.org/r1508770
Log:
updated site layout

Added:
    incubator/metamodel/site/trunk/content/css/metamodel.css
    incubator/metamodel/site/trunk/content/css/prettify-metamodel.css
    incubator/metamodel/site/trunk/content/index.html

Added: incubator/metamodel/site/trunk/content/css/metamodel.css
URL: http://svn.apache.org/viewvc/incubator/metamodel/site/trunk/content/css/metamodel.css?rev=1508770&view=auto
==============================================================================
--- incubator/metamodel/site/trunk/content/css/metamodel.css (added)
+++ incubator/metamodel/site/trunk/content/css/metamodel.css Wed Jul 31 08:32:04 2013
@@ -0,0 +1,140 @@
+html,body {
+	padding: 0px;
+	margin: 0px;
+}
+
+body {
+	font-family: 'Ubuntu', sans-serif;
+	color: #777;
+	font-size: 20px;
+	width: 100%;
+}
+
+h1,h2,h3,h4 {
+	font-family: 'Ubuntu', sans-serif;
+	font-weight: normal;
+	margin: 0px;
+	margin-bottom: 4px;
+	color: #222;
+}
+
+h1.title img {
+	vertical-align: -50%;
+}
+
+h1.title .apache {
+	font-weight: normal;
+	font-size: 0.9em;
+}
+
+h1.title .metamodel {
+	font-weight: bold;
+	font-size: 1.6em;
+}
+
+h3.incubating {
+	text-align: left;
+	margin-left: 1.1em;
+	font-size: 1.4em;
+}
+
+h3 {
+	color: #777;
+	font-size: 1.1em;
+}
+
+a {
+	color: #4f81bd;
+}
+
+div {
+	margin: 0px;
+}
+
+p {
+	margin: 0px;
+	margin-top: 1em;
+}
+
+table {
+	margin: 0px;
+	margin-top: 4px;
+	margin-bottom: 4px;
+	padding: 5px;
+	background-color: #f0f0f0;
+	border-radius: 5px;
+}
+
+th,td {
+	text-align: left;
+	padding-right: 10px;
+}
+
+.nav_container {
+	width: 100%;
+	background-image: url("../img/nav_bg.png");
+	background-repeat: repeat-x;
+	color: white;
+	height: 52px;
+	position: fixed;
+	top: 0px;
+	left: 0px;
+	z-index: 900;
+}
+
+#nav {
+	list-style: none;
+	color: white;
+	margin: 0px;
+	padding: 0px;
+	margin-left: 425px;
+	margin-top: 10px;
+	font-size: 15px;
+}
+
+#nav li {
+	float: left;
+	margin: 0px;
+	padding: 0px;
+	padding-right: 2em;
+}
+
+#nav li a {
+	color: white;
+	text-decoration: none;
+}
+
+.graybg {
+	background-color: #f4f4f4;
+	border-top: 1px solid #ddd;
+	border-bottom: 1px solid #ddd;
+}
+
+.section {
+	margin-top: 5em;
+	margin-bottom: 1em;
+}
+
+.left {
+	position: absolute;
+	width: 375px;
+	text-align: right;
+}
+
+.right {
+	margin-left: 425px;
+	margin-right: 30px;
+}
+
+.center {
+	text-align: center;
+}
+
+.indent {
+	margin-left: 1.8em;
+}
+
+a.bookmark {
+	display: block;
+	clear: both;
+}
\ No newline at end of file

Added: incubator/metamodel/site/trunk/content/css/prettify-metamodel.css
URL: http://svn.apache.org/viewvc/incubator/metamodel/site/trunk/content/css/prettify-metamodel.css?rev=1508770&view=auto
==============================================================================
--- incubator/metamodel/site/trunk/content/css/prettify-metamodel.css (added)
+++ incubator/metamodel/site/trunk/content/css/prettify-metamodel.css Wed Jul 31 08:32:04 2013
@@ -0,0 +1,28 @@
+/**
+ * Prettify overrides for the MetaModel website
+ */
+pre {
+	background-color: #222 !important; 
+	border-radius: 10px !important;
+	padding: 10px;
+	margin-left: 10px;
+	margin-right: 10px;
+	font-size: 0.8em;
+}
+
+pre .typ {
+	color: #5594dd !important;
+}
+
+pre .str, pre .lit {
+	color: #5594dd !important;
+}
+
+pre .com {
+	color: #b8aa5a !important;
+}
+
+pre .kwd {
+	color: #5594dd !important;
+	font-weight: normal !important;
+}
\ No newline at end of file

Added: incubator/metamodel/site/trunk/content/index.html
URL: http://svn.apache.org/viewvc/incubator/metamodel/site/trunk/content/index.html?rev=1508770&view=auto
==============================================================================
--- incubator/metamodel/site/trunk/content/index.html (added)
+++ incubator/metamodel/site/trunk/content/index.html Wed Jul 31 08:32:04 2013
@@ -0,0 +1,241 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+
+	<title>Apache MetaModel</title>
+
+	<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
+    <link rel="stylesheet" type="text/css" media="screen" href="css/metamodel.css">
+    <link href="css/prettify-metamodel.css" type="text/css" rel="stylesheet" />
+	<script type="text/javascript" src="js/google-code-prettify/run_prettify.js?skin=desert"></script>
+</head>
+<body>
+
+	<div class="nav_container">
+		<ul id="nav">
+			<li><a href="#">Home</a></li>
+			<li><a href="#examples">Examples</a></li>
+			<li><a href="#wiki">Wiki</a></li>
+			<li><a href="#mailinglists">Mailing lists</a></li>
+			<li><a href="#sourcecode">Source code</a></li>
+			<li><a href="#issuetracking">Issue tracking</a></li>
+			<li><a href="#heritage">Heritage</a></li>
+			<li><a href="#disclaimer">Disclaimer</a></li>
+		</ul>
+	</div>
+	
+	<div>
+
+		<div class="section">
+			<div class="left">
+				<h1 class="title">
+					<img src="img/logo.png" /> <span class="apache">Apache</span><br/>
+					<span class="metamodel">MetaModel</span><br/>
+				</h1>
+				<h3 class="incubating">(incubating)</h3>
+				
+				<p>&nbsp;</p>
+				
+				<p><img src="img/features.png" alt="" />
+				
+			</div>
+			<div class="right">
+				<div style="height: 1.6em;"></div>
+				
+				<p>Apache MetaModel (incubating) is a data access framework, providing a common interface for
+				exploration and querying of different types of datastores.</p>
+				
+				<p class="indent">
+					<img src="img/datastore-types.png" alt="Datastore types" class="indent" />
+				</p>
+				
+			</div>
+		</div>
+		
+	</div>
+	<div class="graybg">
+		
+		<a class="bookmark" name="examples"></a>
+		
+		<div class="section">
+			<div class="left">
+				<h2>Examples</h2>
+				<h3>Query with MetaModel</h3>
+			</div>
+	
+			<div class="right">
+				
+				<p>With MetaModel you use a type-safe SQL-like API for querying any datastore:</p>
+		
+				<pre class="prettyprint lang-java">DataContext dataContext = DataContextFactory.create[TypeOfDatastore](...);
+DataSet dataSet = dataContext.query()
+    .from("libraries")
+    .select("name")
+    .where("language").eq("Java")
+    .and("enhances_data_access").eq(true)
+    .execute();</pre>
+		
+				<p>The MetaModel query API allows you to use the power of SQL, even on data formats such as CSV files, Excel spreadsheets, NoSQL databases and more.</p>
+			</div>
+		</div>
+		
+		<div class="section">
+			<div class="left">
+				<h3>Update with MetaModel</h3>
+			</div>
+			<div class="right">
+				<p>MetaModel lets you do CRUD operations on arbitrary datamodels, also in a type-safe manner. Batch updates and transactions are logically modelled as UpdateScript closures.</p>
+				
+				<pre class="prettyprint lang-java">dataContext.executeUpdate(new UpdateScript() {
+    public void run(UpdateCallback callback) {
+        // CREATE a table
+        Table table = callback.createTable("contributors")
+            .withColumn("id").ofType(INTEGER)
+            .withColumn("name").ofType(VARCHAR).execute();
+            
+        // INSERT INTO table
+        callback.insertInto(table)
+            .value("id", 1).value("name", "John Doe").execute();
+        callback.insertInto(table)
+            .value("name", "Jane D.").execute();
+        
+        // UPDATE table
+        callback.update(table).value("name","Jane Doe")
+            .where("id").eq(2).execute();
+        
+        // DELETE FROM table
+        callback.deleteFrom(table).where("id").eq(1).execute();
+    }
+});</pre>
+		
+				<p>The rest of the API should reveal itself through using the DataContext! Javadocs, wiki, mailing lists and other resources help too of course, so ...</p>
+			</div>
+		</div>
+		
+	</div>
+	<div>
+		
+		<a class="bookmark" name="wiki"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Wiki</h2>
+			</div>
+			<div class="right">
+				<p>Check out the <a href="https://wiki.apache.org/metamodel">MetaModel wiki</a> for more examples and documentation.</p>
+			</div>
+		</div>
+		
+		<a class="bookmark" name="mailinglists"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Mailing lists</h2>
+			</div>
+			<div class="right">
+				<p>To get involved with Apache MetaModel, start by joining our mailing lists and engage in the conversations!</p>
+				
+				<table>
+					<thead>
+					  <tr>
+					    <th>Name</th>
+					    <th>Subscribe</th>
+					    <th>Unsubscribe</th>
+					    <th>Post</th>
+					    <th>Archive</th>
+					  </tr>
+					</thead>
+					<tbody>
+					  <tr>
+					    <td>Developer List</td>
+					    <td><a rel="nofollow" href="mailto:dev-subscribe@metamodel.incubator.apache.org">Subscribe</a></td>
+					    <td><a rel="nofollow" href="mailto:dev-unsubscribe@metamodel.incubator.apache.org">Unsubscribe</a></td>
+					    <td><a rel="nofollow" href="mailto:dev@metamodel.incubator.apache.org">Post</a></td>
+					    <td><a rel="nofollow" href="http://mail-archives.apache.org/mod_mbox/metamodel-dev/">mail-archives.apache.org</a></td>
+					  </tr>
+					  <tr>
+					    <td>Commits</td>
+					    <td><a rel="nofollow" href="mailto:commits-subscribe@metamodel.incubator.apache.org">Subscribe</a></td>
+					    <td><a rel="nofollow" href="mailto:commits-unsubscribe@metamodel.incubator.apache.org">Unsubscribe</a></td>
+					    <td><a rel="nofollow" href="mailto:commits@metamodel.incubator.apache.org">Post</a></td>
+					    <td><a rel="nofollow" href="http://mail-archives.apache.org/mod_mbox/metamodel-commits/">mail-archives.apache.org</a></td>
+					  </tr>
+					</tbody>
+				</table>
+			</div>
+		</div>
+		
+		
+		<a class="bookmark" name="sourcecode"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Source code</h2>
+			</div>
+			<div class="right">
+				<p>The source code for Apache MetaModel is available through this Apache Git repository:</p>
+				<p><a href="https://git-wip-us.apache.org/repos/asf/incubator-metamodel.git">https://git-wip-us.apache.org/repos/asf/incubator-metamodel.git</a></p>
+			</div>
+		</div>
+	
+		<a class="bookmark" name="issuetracking"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Issue tracking</h2>
+			</div>
+			<div class="right">
+				<p>Issues for Apache MetaModel are tracked through this Apache JIRA system:</p>
+				<p><a href="https://issues.apache.org/jira/browse/METAMODEL">https://issues.apache.org/jira/browse/METAMODEL</a></p>
+			</div>
+		</div>
+	
+	</div>
+	<div class="graybg">
+		
+		<a class="bookmark" name="heritage"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Heritage</h2>
+			</div>
+			<div class="right">
+				<p>MetaModel was initially developed and released by Human Inference since 2011 and is an Apache
+				Incubator project since July 2013. It is licensed under the Apache 2.0 license.</p>
+				<p>While the incubation at Apache is still ongoing <a href="http://metamodel.eobjects.org" rel="nofollow">the old MetaModel project</a>
+				will still be maintained with any urgent bugfixes.</p>
+			</div>
+		</div>
+		
+		<a class="bookmark" name="disclaimer"></a>
+		<div class="section">
+			<div class="left">
+				<h2>Disclaimer</h2>
+			</div>
+			<div class="right">
+				<img src="http://incubator.apache.org/images/egg-logo.png" style="float: right; margin: 10px; background-color: white;" />
+				
+				<p>Apache MetaModel is an effort undergoing incubation at
+				<a rel="nofollow" href="http://apache.org/">The Apache Software Foundation</a>
+				sponsored by the <a rel="nofollow" href="http://incubator.apache.org/">Apache Incubator PMC</a>.
+				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>
+			
+			</div>
+		</div>
+		
+		<div class="section" style="margin-bottom: 2em;">
+			<div class="right">
+				<p>
+					Copyright &copy; 2013
+					<a href="http://www.apache.org">The Apache Software Foundation</a>.
+					All Rights Reserved.
+				</p>
+			</div>
+		</div>
+	
+	</div>
+
+</body>
+</html>
+