Attributes | Values |
---|
type
| |
Date Created
| |
Date Modified
| |
label
| - VirtFacetBrowserAPIsFCTEXECxsl
|
maker
| |
Title
| - VirtFacetBrowserAPIsFCTEXECxsl
|
isDescribedUsing
| |
has creator
| |
content
| - %META:TOPICPARENT{name="VirtFacetBrowserAPIsFCTEXEC"}%
---++fct_exec Service Sample Example xsl content
<verbatim>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:variable name="rowcnt" select="count(/facets/result/row)"/>
<xsl:template match="facets">
<div id="res">
<xsl:if test="/facets/complete = 'yes' and /facets/processed = 0 and $rowcnt = 0">
<div class="empty_result">
Nothing found.
</div>
</xsl:if>
<xsl:for-each select="/facets/result">
<xsl:call-template name="render-result"/>
</xsl:for-each>
</div>
<!-- #res -->
</xsl:template>
<xsl:template name="render-result">
<table class="result" border="1">
<thead>
<tr>
<th>Entity</th>
<th>Title</th>
<th>Text excerpt</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="row">
<tr>
<td class="rnk">
<xsl:for-each select="column[@datatype='trank' or @datatype='erank']">
<xsl:choose>
<xsl:when test="./@datatype='trank'">Text Rank:</xsl:when>
<xsl:when test="./@datatype='erank'">Entity Rank:</xsl:when>
</xsl:choose>
<xsl:value-of select="."/>
<br/>
</xsl:for-each>
</td>
<xsl:for-each select="column">
<xsl:choose>
<xsl:when test="'url' = ./@datatype">
<td>
<a>
<xsl:attribute name="href">http://lod.openlinksw.com/describe/?url=<xsl:value-of select="urlify (.)"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="."/></xsl:attribute>
<xsl:choose>
<xsl:when test="'' != ./@shortform">
<xsl:value-of select="./@shortform"/>
</xsl:when>
<xsl:when test="'erank' = ./@datatype or 'trank' = ./@datatype">rank</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</a>
</td>
</xsl:when>
<xsl:when test="'erank' = ./@datatype or 'trank' = ./@datatype"/>
<xsl:when test="'srch_xerpt' = ./span/@class">
<td>
<xsl:value-of select="."/>
</td>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
</verbatim>
---++Related
* Facets Web Service:
* [[VirtuosoFacetsWebService][Virtuoso Facets Web Service]]
* Linked Data:
* [[VirtuosoFacetsViewsLinkedData][Faceted Views over Large-Scale Linked Data]]
* Facet Browser Installation and configuration:
* [[VirtFacetBrowserInstallConfig][Virtuoso Facet Browser Installation and configuration]]
* Facet APIs:
* [[VirtFacetBrowserAPIs][Virtuoso APIs for FCT REST services]]
* [[VirtFacetBrowserAPIsFCTEXEC][<code><nowiki>fct_exec</nowiki></code> API Example]]
* Pivot Viewer and CXML:
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSparqlCxmlFacetPivotBridge#AncSparqlCxmlFacetPivotBridge][Facet Pivot Bridge - A bridge to PivotViewer from Virtuoso's Faceted query service for RDF]]
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSparqlCxml#AncFacetTypeAutoDetection][Auto-Detection of Facet Type]]
* Tutorials:
* [[VirtuosoLODSampleTutorial][Faceted Browsing Sample using LOD Cloud Cache data space]]
* [[VirtuosoFacetsWebServiceSOAPExample][SOAP Facets Example]]
* [[VirtFacetBrowserInstallConfigQueried][Querying The Facet Browser Web Service endpoint]]
* [[VirtFCTFeatureQueries][Virtuoso Facet Browser Featured Queries]]
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtVisualizeWithPivotViewer#GenFCT][Visualizing Your Data With PivotViewer Using The Facet Browser]]
* [[VirtTipsAndTricksCustomControlLabelsURI][Custom Controlling Virtuoso Labels for URI functionality Example]]
* [[VirtuosoFacetsWebServiceCustmExamples][Facets Web Service: Examples for customizing different types]]
* [[VirtuosoFacetsWebServiceChoiceExample][Facets Web Service: Choice of Labels Example]]
* Downloads:
* [[http://sourceforge.net/project/showfiles.php?group_id=161622&package_id=319652][Virtuoso 6.0 TP1]]
* [[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.2/virtuoso/fct_dav.vad][Virtuoso Facet Browser VAD package]]
|
id
| - 3e941457abe1fdf62051265f5e0deb62
|
link
| |
has container
| |
http://rdfs.org/si...ices#has_services
| |
atom:title
| - VirtFacetBrowserAPIsFCTEXECxsl
|
links to
| |
atom:source
| |
atom:author
| |
atom:published
| |
atom:updated
| |
topic
| |
is made
of | |
is container of
of | |
is link
of | |
is http://rdfs.org/si...vices#services_of
of | |
is links to
of | |
is creator of
of | |
is atom:entry
of | |
is atom:contains
of | |