Skip to content

Commit 402a1ae

Browse files
committed
Initial commit
0 parents  commit 402a1ae

39 files changed

+277245
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bundle/
2+
.vendor/
3+
Gemfile.lock
4+
_site

Gemfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
source "https://rubygems.org"
2+
ruby RUBY_VERSION
3+
4+
# Hello! This is where you manage which Jekyll version is used to run.
5+
# When you want to use a different version, change it below, save the
6+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
7+
#
8+
# bundle exec jekyll serve
9+
#
10+
# This will help ensure the proper Jekyll version is running.
11+
# Happy Jekylling!
12+
gem "jekyll", "3.6.3"
13+
14+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
15+
#gem "minima", "~> 2.0"
16+
17+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
18+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
19+
# gem "github-pages", group: :jekyll_plugins
20+
21+
# If you have any plugins, put them here!
22+
group :jekyll_plugins do
23+
gem "jekyll-rdf"
24+
end

_config.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Site settings
2+
title: Open Hebrew
3+
email:
4+
description: ""
5+
baseurl: "/lang/heb/inventory/oh"
6+
url: "http://mmoon.org"
7+
8+
# Build settings
9+
markdown: kramdown
10+
kramdown:
11+
parse_block_html: true
12+
13+
# Build settings
14+
#theme: minima
15+
plugins:
16+
- jekyll-rdf
17+
exclude:
18+
- Gemfile
19+
- Gemfile.lock
20+
jekyll_rdf:
21+
path: "_data/heb_inventory.ttl"
22+
restriction: "SELECT ?resourceUri WHERE { ?resourceUri ?p ?o ; a <http://mmoon.org/lang/heb/schema/oh/Lexeme> . FILTER regex(str(?resourceUri), \"http://mmoon.org/lang/heb/inventory/oh\") }"
23+
class_template_mappings:
24+
"http://mmoon.org/lang/heb/schema/oh/Lexeme" : "lexeme.html"

_data/heb_inventory.ttl

+274,216
Large diffs are not rendered by default.

_data/prefix.sparql

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2+
prefix dc: <http://purl.org/dc/elements/1.1/>
3+
prefix gold: <http://purl.org/linguistics/gold/>
4+
prefix heb_inventory: <http://mmoon.org/lang/heb/inventory/oh/>
5+
prefix heb_schema: <http://mmoon.org/lang/heb/schema/oh/>
6+
prefix mmoon: <http://mmoon.org/mmoon/core/>
7+
prefix owl: <http://www.w3.org/2002/07/owl#>
8+
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
9+
prefix xml: <http://www.w3.org/XML/1998/namespace>
10+
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
11+
prefix lemon: <http://www.lemon-model.net/lemon#>
12+
prefix bn: <http://babelnet.org/rdf/>

_includes/head.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{% if page.title %}
6+
{% assign page_title = page.title %}
7+
{% endif %}
8+
{% if meta_title %}
9+
{% assign page_title = meta_title%}
10+
{% endif %}
11+
<title>{{ site.title }}{% if page_title %}{{ page_title | prepend: ": " }}{% endif %}</title>
12+
{% if page.description %}
13+
<meta name="description" content="{{ page.description }}">
14+
{% else %}
15+
<meta name="description" content="{{ site.description }}">
16+
{% endif %}
17+
<meta name="twitter:card" content="summary">
18+
<meta name="twitter:site" content="{{ site.twitter_username }}">
19+
<meta name="twitter:title" content="{{ page.title }}">
20+
<meta property="http://ogp.me/ns#type" content="article">
21+
<meta property="http://ogp.me/ns#title" content="{{ page.title }}">
22+
<meta property="http://ogp.me/ns/article#published_time" content="{{ page.date }}">
23+
24+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
25+
26+
<!-- Custom CSS -->
27+
<link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | prepend: site.baseurl }}">
28+
<link rel="stylesheet" href="{{ "/css/custom.css" | prepend: site.baseurl }}">
29+
<link rel="stylesheet" href="{{ "/fonts/OpenSans-Regular-stylesheet.css" | prepend: site.baseurl }}">
30+
<link rel="stylesheet" href="{{ "/fonts/Lato-stylesheet.css" | prepend: site.baseurl }}">
31+
<link rel="stylesheet" href="{{ "/fonts/Underwood_champion-stylesheet.css" | prepend: site.baseurl }}">
32+
<link rel="stylesheet" href="{{ "/fonts/font-awesome.min.css" | prepend: site.baseurl }}">
33+
</head>

_includes/header.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="blog-masthead">
2+
<div class="container">
3+
<strong>{{ site.title }}</strong>
4+
<nav class="blog-nav">
5+
</nav>
6+
</div>
7+
</div>

_includes/representation.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% assign orthographic = representation | rdf_property: "mmoon:orthographicRepresentation" %}
2+
{% assign vocalized = representation | rdf_property: "heb_schema:vocalizedRepresentation" %}
3+
{% assign unvocalized = representation | rdf_property: "heb_schema:unvocalizedRepresentation" %}
4+
5+
<dl>
6+
{% if orthographic %}
7+
<dt>Orthographic Representation</dt>
8+
<dd>{{ orthographic }}</dd>
9+
{% endif %}
10+
11+
{% if vocalized %}
12+
<dt>Vocalized Representation</dt>
13+
<dd>{{ vocalized }}</dd>
14+
{% endif %}
15+
16+
{% if unvocalized %}
17+
<dt>Unvocalized Representation</dt>
18+
<dd>{{ unvocalized }}</dd>
19+
{% endif %}
20+
</dl>

_includes/scripts.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<script src="{{ "/scripts/jquery.min.js" | prepend: site.baseurl }}" type="text/javascript"></script>
2+
<script src="{{ "/scripts/bootstrap/bootstrap.min.js" | prepend: site.baseurl }}" type="text/javascript"></script>

_includes/sense.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% assign definition = sense | rdf_property: "mmoon:senseDefinition" %}
2+
{% assign language = sense | rdf_property: "dc:language" %}
3+
4+
<dl>
5+
{% if definition %}
6+
<dt>Definition {% if language %}({{ language }}){% endif %}</dt>
7+
<dd>{{ definition }}</dd>
8+
{% endif %}
9+
</dl>

_layouts/default.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<div class="container main-content">
11+
<div class="wrap">
12+
{{ content }}
13+
</div>
14+
</div>
15+
{% include scripts.html %}
16+
</body>
17+
</html>

_layouts/lexeme.html

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: default
3+
rdf_prefix_path: "_data/prefix.sparql"
4+
title: "Lexeme"
5+
---
6+
<div class="post">
7+
<header class="post-header">
8+
<h1>{{ page.rdf | rdf_property: "rdfs:label" }}</h1>
9+
</header>
10+
11+
{% assign inflections = page.rdf | rdf_property: "mmoon:hasInflectionalCategory", nil, true %}
12+
{% assign representations = page.rdf | rdf_property: "mmoon:hasRepresentation", nil, true %}
13+
{% assign senses = page.rdf | rdf_property: "mmoon:hasSense", nil, true %}
14+
{% assign wordclasses = page.rdf | rdf_property: "mmoon:hasWordclassAffiliation", nil, true %}
15+
{% assign morphs = page.rdf | rdf_property: "mmoon:consistsOfMorph", nil, true %}
16+
17+
{% assign lemon_sense = page.rdf | rdf_property: "lemon:sense", nil, true %}
18+
{% assign seeAlso = page.rdf | rdf_property: "rdfs:seeAlso", nil, true %}
19+
20+
{% for link in seeAlso %}
21+
<a href="{{link}}">{{link}}</a>,
22+
{% endfor %}
23+
24+
{% for lemon_link in lemon_sense %}
25+
<a href="{{ lemon_link }}">{{ lemon_link }}</a>,
26+
{% endfor %}
27+
28+
29+
<dl>
30+
<dt>Inflection Category</dt>
31+
{% for category in inflections %}
32+
<dd>{{ category.iri }}</dd>
33+
{% endfor %}
34+
35+
<dt>Representation</dt>
36+
{% for representation in representations %}
37+
<dd>{% include representation.html representation=representation %}</dd>
38+
{% endfor %}
39+
40+
<dt>Sense</dt>
41+
{% for sense in senses %}
42+
<dd>{% include sense.html sense=sense %}</dd>
43+
{% endfor %}
44+
45+
<dt>Word Classes</dt>
46+
{% for class in wordclasses %}
47+
<dd>{{ class.iri }}</dd>
48+
{% endfor %}
49+
50+
<dt>Morph</dt>
51+
{% for morph in morphs %}
52+
<dd>{{ morph.iri }}</dd>
53+
{% endfor %}
54+
</dl>
55+
56+
</div>

css/bootstrap.min.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/bootstrap.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)