Commit defe2a35 authored by Maxime Lefrançois's avatar Maxime Lefrançois

comment on different lines

parent 85a27ffd
......@@ -22,7 +22,7 @@ TEMPLATE <ontology/classDescription.rqg>( ?class , ?first ) {
FILTER(ISURI(?class))
OPTIONAL { ?class rdfs:comment ?comment }
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
TEMPLATE {
......
......@@ -41,7 +41,7 @@ TEMPLATE <classes.rqg>( ?onto ) {
TEMPLATE {
before = "\n<div class='comment'><p>\n" ;
TEMPLATE <function/formatText.rqg>(?comment) .
; after = "</p></div>"
; separator = "<br/>" ; after = "</p></div>"
}
WHERE {
?class rdfs:comment ?comment .
......
......@@ -41,7 +41,7 @@ TEMPLATE <dataProperties.rqg>( ?onto ) {
TEMPLATE {
before = "\n<div class='comment'><p>\n" ;
TEMPLATE <function/formatText.rqg>(?comment) .
; after = "</p></div>"
; separator = "<br/>" ; after = "</p></div>"
}
WHERE {
?dp rdfs:comment ?comment .
......
......@@ -24,7 +24,7 @@ TEMPLATE <ontology/individualAndLiteralDescription.rqg>( ?object ) {
FILTER(ISURI(?object))
OPTIONAL {?object rdfs:comment ?comment }
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
# anonymous individual
TEMPLATE {
......
......@@ -47,7 +47,7 @@ TEMPLATE <namedIndividuals.rqg>( ?onto ) {
TEMPLATE {
before = "\n<div class='comment'><p>\n" ;
TEMPLATE <function/formatText.rqg>(?comment) .
; after = "</p></div>"
; separator = "<br/>" ; after = "</p></div>"
}
WHERE {
?individual rdfs:comment ?comment .
......
......@@ -41,7 +41,7 @@ TEMPLATE <objectProperties.rqg>( ?onto ) {
TEMPLATE {
before = "\n<div class='comment'><p>\n" ;
TEMPLATE <function/formatText.rqg>(?comment) .
; after = "</p></div>"
; separator = "<br/>" ; after = "</p></div>"
}
WHERE {
?op rdfs:comment ?comment .
......
......@@ -28,7 +28,7 @@ TEMPLATE <ontology/propertyDescription.rqg>( ?property ) {
FILTER (?property != owl:topObjectProperty)
FILTER (?property != owl:bottomObjectProperty)
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
# universal object property
TEMPLATE {
......
......@@ -22,7 +22,7 @@ TEMPLATE <term/classDescription.rqg>( ?class , ?first ) {
FILTER(ISURI(?class))
OPTIONAL { ?class rdfs:comment ?comment }
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
TEMPLATE {
......
......@@ -24,7 +24,7 @@ TEMPLATE <term/individualAndLiteralDescription.rqg>( ?object ) {
FILTER(ISURI(?object))
OPTIONAL {?object rdfs:comment ?comment }
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
# anonymous individual
TEMPLATE {
......
......@@ -20,7 +20,7 @@ TEMPLATE <term/main.rqg>( ?term ) {
<div class="g-content g-particle">
<h1><a href="{?term}">{?prefix}{?localName}</a> ({ TEMPLATE <term/label.rqg>( ?term ) . })</h1>
<p><em>Defined in <a href="{?ontoRef}">{?ontoRef}</a> as: </em></p>
<p>{ TEMPLATE { ?description } WHERE { ?term rdfs:comment ?description } . }</p>
<p>{ TEMPLATE { ?description ; separator = "<br/>\n"} WHERE { ?term rdfs:comment ?description } . }</p>
<dl>
<dt>IRI:</dt><dd><a href='{?term}'>{?term}</a></dd>
{
......
......@@ -28,7 +28,7 @@ TEMPLATE <term/propertyDescription.rqg>( ?property ) {
FILTER (?property != owl:topObjectProperty)
FILTER (?property != owl:bottomObjectProperty)
BIND( IF(BOUND(?comment), ?comment, "<<no comment>>") AS ?commentStr )
} .
} LIMIT 1 .
# universal object property
TEMPLATE {
......
one=The `ontology` directory of the SAREF project version shall contain a single file called the *ontology document* of the SAREF project version, and named `%s`
name=The ontology document shall be named `%s`.
turtle=The ontology document shall contain the sources of an ontology in the Turtle 1.1 format. See detailed error below.
ioexception=Error while checking the `ontology` directory
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment