d3tree_hiddendivs.html 7.34 KB
Newer Older
lambdamusic's avatar
lambdamusic committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221


{# hidden divs for d3tree viz - shown within slider #}

<div class="hidden" id="ontoinfo">
	<h2>Ontology: <a href="{{main_uri}}" target="_blank" class="class"  title="Try to open original URI">{{main_uri}}</a></h2>

	<hr class="margintop">

	{% if ontology.annotations %}
	<b class="section-title">Annotations:</b>

		{# <h1><a name="annotations">&nbsp;</a>Ontology annotations</h1> #}
		
		{% for each in ontology.annotations %}
		
			{% ifchanged each.1 %}
				
				{% if not forloop.first %}</dl>{% endif %}
			    <dl>
			      <dt>{{each.1}}</dt>
				  
			{% endifchanged %}
					<dd>{{each.2}}</dd>

		{% endfor %}
	
	{% else %}
		<em>No annotations available</em>
	{% endif %}


	{% if ontology.annotations %}
	<hr>
	<b class="section-title">Implementation:</b>
	<pre class="turtlesource">{{ontology.rdf_source|escape}}</pre>

	{% endif %}

</div>




{% for each in classes  %}
	
<div class="hidden" id="{{each.id}}">

	
	<h2 class="entity-section">Class: <a href="{{each.uri}}" class="class" target="_blank"
                                          title="Try to open original URI">{{each.qname}}</a>
	</h2>
	<hr>

    {% if each.bestLabel %}
	<p><b class="section-title">Label: </b>{{each.bestLabel|capfirst}}</p>
    {% endif %}
    {% if each.bestDescription %}
        <p><b class="section-title">Description: </b>{{each.bestDescription}}</p>
    {% endif %}



	{% if each.parents or each.children or each.domain_of or each.range_of  %}
		<hr>
	{% endif %}
	
	
	{% if each.parents %}
		<p><b class="section-title">Has Super Class (direct):</b> {% for s in each.parents %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.ancestors  and each.ancestors|length > each.parents|length %}
		<p><b class="section-title">Has Super Class (all):</b> {% for s in each.ancestors %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}

	{% if each.children  %}
		<p><b class="section-title">Has Sub Class (direct):</b> {% for s in each.children %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.descendants and each.descendants|length > each.children|length %}
		<p><b class="section-title">Has Sub Class (all):</b> {% for s in each.descendants %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}

	{% if each.domain_of %}
		<p><b class="section-title">In Domain Of:</b> {% for s in each.domain_of %}<a href="javascript:showpanel('{{s.id}}');"  class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.range_of %}
		<p><b class="section-title">In Range Of:</b> {% for s in each.range_of %}<a href="javascript:showpanel('{{s.id}}');" class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}

	<hr>
	<b class="section-title">Implementation:</b>
	<pre class="turtlesource">{{each.rdf_source|escape}}</pre>

</div>
	
	
{% endfor %}






{# PROPERTIES SECTION #}


{% for each in properties  %}

<div class="hidden" id="{{each.id}}">
	
	<h2 class="entity-section">Property: <a  href="{{each.uri}}" class="prop"  target="_blank"
                                          title="Try to open original URI">{{each.qname}}</a>
	</h2>
	<hr>

    {% if each.bestLabel %}
	<p><b class="section-title">Label: </b>{{each.bestLabel|capfirst}}</p>
    {% endif %}
    {% if each.bestDescription %}
        <p><b class="section-title">Description: </b>{{each.bestDescription}}</p>
    {% endif %}


	{% if each.parents or each.children or each.domains or each.ranges  %}
		<hr>
	{% endif %}


	{% if each.parents %}
		<p><b  class="section-title">Has Super Property (direct):</b> {% for s in each.parents %}<a href="javascript:showpanel('{{s.id}}');" class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.ancestors  and each.ancestors|length > each.parents|length %}
		<p><b  class="section-title">Has Super Property (all):</b> {% for s in each.ancestors %}<a href="javascript:showpanel('{{s.id}}');" class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.children %}
		<p><b class="section-title">Has Sub Property (direct):</b> {% for s in each.children %}<a href="javascript:showpanel('{{s.id}}');" class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.descendants and each.descendants|length > each.children|length %}
		<p><b class="section-title">Has Sub Property (all):</b> {% for s in each.descendants %}<a href="javascript:showpanel('{{s.id}}');" class="prop">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.domains %}
		<p><b class="section-title">Domain:</b> {% for s in each.domains %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname|default:s}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.ranges %}
		<p><b class="section-title">Range:</b> {% for s in each.ranges %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname|default:s}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	<hr>
	<b class="section-title">Implementation:</b>
	<pre class="turtlesource">{{each.rdf_source|escape}}</pre>


</div>

{% endfor %}







{# SKOS CONCEPTS SECTION #}


{% for each in skosConcepts  %}

<div class="hidden" id="{{each.id}}">
	
	<h2 class="entity-section">Concept: <a href="{{each.uri}}" class="class"  target="_blank"
                                          title="Try to open original URI">{{each.qname}}</a>
	</h2>
	<hr>

    {% if each.bestLabel %}
	<p><b class="section-title">Label: </b>{{each.bestLabel|capfirst}}</p>
    {% endif %}
    {% if each.bestDescription %}
        <p><b class="section-title">Description: </b>{{each.bestDescription}}</p>
    {% endif %}


	{% if each.parents or each.children  %}
		<hr>
	{% endif %}
	
	{% if each.parents %}
		<p><b class="section-title">Has Super Concept (direct):</b> {% for s in each.parents %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.ancestors  and each.ancestors|length > each.parents|length %}
		<p><b class="section-title">Has Super Concept (all):</b> {% for s in each.ancestors %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.children %}
		<p><b class="section-title">Has Sub Concept (direct):</b> {% for s in each.children %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	{% if each.descendants and each.descendants|length > each.children|length %}
		<p><b class="section-title">Has Sub Concept (all):</b> {% for s in each.descendants %}<a href="javascript:showpanel('{{s.id}}');" class="class">{{s.qname}}</a> {% if not forloop.last %}|{% endif %} {% endfor %}</p>
	{% endif %}
	
	
	<hr>
	<b class="section-title">Implementation:</b>
	<pre class="turtlesource">{{each.rdf_source|escape}}</pre>

</div>
	
{% endfor %}