Skip to content

Commit

Permalink
Adding support for individuals to owl2html stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Sep 3, 2014
1 parent 92536b8 commit 95e480f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions owl2html.xsl
Expand Up @@ -37,6 +37,14 @@
</xsl:for-each>
</xsl:if>

<xsl:if test="/rdf:RDF/owl:Individual">
<h3>Individuals</h3>
<xsl:for-each select="/rdf:RDF/owl:Individual">
<xsl:sort select="@rdf:about"/>
<xsl:call-template name="link"/>
</xsl:for-each>
</xsl:if>

<xsl:if test="/rdf:RDF/owl:ObjectProperty">
<h3>Object Properties</h3>
<xsl:for-each select="/rdf:RDF/owl:ObjectProperty">
Expand Down Expand Up @@ -64,6 +72,14 @@
</xsl:for-each>
</xsl:if>

<xsl:if test="/rdf:RDF/owl:Individual">
<h3>Individuals</h3>
<xsl:for-each select="/rdf:RDF/owl:Individual">
<xsl:sort select="@rdf:about"/>
<xsl:call-template name="description"/>
</xsl:for-each>
</xsl:if>

<xsl:if test="/rdf:RDF/owl:ObjectProperty">
<h3>Object Properties</h3>
<xsl:for-each select="/rdf:RDF/owl:ObjectProperty">
Expand Down Expand Up @@ -135,6 +151,21 @@
</xsl:for-each>
</div>
</xsl:if>
<xsl:if test="//*[rdf:type/@rdf:resource=concat($about,$id)]">
<div class="property">instances:
<xsl:for-each select="//*[rdf:type/@rdf:resource=concat($about,$id)]">
<xsl:sort select="@rdf:about"/>
<xsl:call-template name="link"/>
</xsl:for-each>
</div>
</xsl:if>
<xsl:if test="rdf:type">
<div class="property">rdf:type:
<xsl:for-each select="rdf:type">
<xsl:call-template name="link"/>
</xsl:for-each>
</div>
</xsl:if>
<xsl:if test="rdfs:domain">
<div class="property">
domain:
Expand Down

0 comments on commit 95e480f

Please sign in to comment.