Hi Tim,

On 5/15/2012 13:59, Tim Smith wrote:
I'm still unable to determine the error.

However, when running 3.6.0R or Beta, the facet.ui:Summary view does not appear in the drop down when viewing the Resource in the SWP view. This did appear in 3.5.4.

Yes this is a glitch that unfortunately found its way into the 3.6.0 release. Please replace the attached file in your workspace (facet.topbraidlive.org project).


The only way I can invoke the faceted browser is to use the URL as defined in the help page.

Something of the form:

http://localhost:8083/tbl/uispin?_resource=http%3A%2F%2Fontologies.pg.com%2Ftesting%2Ffacets%23TopClass&_matchIds=facets <http://localhost:8083/tbl/uispin?_resource=http%3A%2F%2Fontologies.pg.com%2Ftesting%2Ffacets%23TopClass&_matchIds=facets>

Please try

http://localhost:8083/tbl/uispin?_resource=http%3A%2F%2Fontologies.pg.com%2Ftest%2Ffacet%23TopClass&_matchIds=facets

(I think you got your namespace slightly wrong :) )

On the other problem from your original email: is this the example data that leads to the suspected crash? If so, how can I reproduce it?

Thanks,
Holger



Also, I thought any class would be displayable via the faceted browser. However, I was attempting to create a test case to duplicate the problem, but none of the 4 classes I defined will display using the above link. All return a 500 error code for no valid UISPIN/SWP view.


    HTTP ERROR 500

Problem accessing /tbl/uispin. Reason:

     An internal error has been reported by the UISPIN engine of TopBraid Live. 
 Please contact your administrator with a copy of the error message below.

java.lang.IllegalArgumentException: No valid UISPIN view found
        at 
org.topbraid.spin.swp.servlet.SWPServletUtil.run(SWPServletUtil.java:417)
        at 
org.topbraidlive.swp.servlet.UISPINServlet.run(UISPINServlet.java:176)
        at 
org.topbraidlive.swp.servlet.UISPINServlet.run(UISPINServlet.java:153)



I've attached the sample files.

Any thoughts on why facet.ui:Summary does not appear in 3.6.0 and what do I need to do to make a class displayable using the faceted browser?

Thanks,

Tim


On Mon, May 14, 2012 at 2:38 AM, Holger Knublauch <[email protected] <mailto:[email protected]>> wrote:

    Hi Tim,

    hard to say without seeing the example data and having any error
    as a clue. But what you could do is install FireBug (Firefox
    plugin) and then activate it when working with the faceted
    browser. This will allow you to monitor the requests and
    responses, and you may see an error message in the Net tab and
    Console of Firebug.

    Thanks
    Holger



    On 5/14/2012 13:20, Tim Smith wrote:

        Hi,

        When trying to use the faceted browser from TBC-ME 3.6.0R, I
        sometimes, but not always receive this message from the
        browser (IE or Firefox):

        "Communication Error with Server"

        This typically happens when I'm attempting to add a facet.

        It seems to happen when there are a large number (10,000ish)
        of values for the facet OR when there are a lot of instances
        of the class (40-50,000ish).

        There are no errors in the error log.

        I need this to work!

        I can reproduce it with an internal data set, most of the time.

        Do you know where I can look to find more information
        regarding the error?

        I cannot determine if it is TBC, IE/Firefox, etc...

        Thanks for you help with this vaque problem.

        Tim


-- You received this message because you are subscribed to the Google
        Group "TopBraid Suite Users", the topics of which include
        Enterprise Vocabulary Network (EVN), TopBraid Composer,
        TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
        To post to this group, send email to
        [email protected]
        <mailto:[email protected]>
        To unsubscribe from this group, send email to
        [email protected]
        <mailto:topbraid-users%[email protected]>
        For more options, visit this group at
        http://groups.google.com/group/topbraid-users?hl=en


-- You received this message because you are subscribed to the Google
    Group "TopBraid Suite Users", the topics of which include
    Enterprise Vocabulary Network (EVN), TopBraid Composer,
    TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
    To post to this group, send email to
    [email protected]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:topbraid-users%[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/topbraid-users?hl=en


--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
# baseURI: http://facet.topbraidlive.org/facet.ui
# imports: http://uispin.org/tui

# c14n-version: 3
@prefix arg: <http://spinrdf.org/arg#> .
@prefix css: <http://uispin.org/css#> .
@prefix facet.ui: <http://facet.topbraidlive.org/facet.ui#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix tui: <http://uispin.org/tui#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://facet.topbraidlive.org/facet.ui>
  rdf:type owl:Ontology ;
  rdfs:comment "UISPIN components and views to be used in conjunction with the 
TopBraid Facet feature. The preferred matchId of views that shall appear as 
summaries is \"facetSummary\". This file defines a default instanceView, 
attached to rdfs:Resource, that displays the label and comment of the 
resource."^^xsd:string ;
  owl:imports <http://uispin.org/tui> ;
  owl:versionInfo "0.1.0"^^xsd:string ;
.
facet.ui:Description
  rdf:type ui:NodeClass ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:resource ;
      spl:valueType xsd:string ;
      rdfs:comment "The resource to display the description of."^^xsd:string ;
    ] ;
  ui:prototype [
      rdf:type ui:group ;
      let:desc [
          rdf:type spl:object ;
          sp:arg1 [
              sp:varName "resource"^^xsd:string ;
            ] ;
          sp:arg2 <http://purl.org/dc/elements/1.1/description> ;
        ] ;
      ui:child [
          rdf:type ui:group ;
          let:text [
              rdf:type smf:if ;
              sp:arg1 [
                  rdf:type sp:bound ;
                  sp:arg1 [
                      sp:varName "desc"^^xsd:string ;
                    ] ;
                ] ;
              sp:arg2 [
                  sp:varName "desc"^^xsd:string ;
                ] ;
              sp:arg3 [
                  rdf:type spl:object ;
                  sp:arg1 [
                      sp:varName "resource"^^xsd:string ;
                    ] ;
                  sp:arg2 rdfs:comment ;
                ] ;
            ] ;
          ui:child [
              rdf:type ui:if ;
              ui:child [
                  rdf:type html:Div ;
                  html:class "resourceSummaryText"^^xsd:string ;
                  ui:child [
                      rdf:type ui:TextNode ;
                      ui:childIndex 0 ;
                      ui:text [
                          sp:varName "text"^^xsd:string ;
                        ] ;
                    ] ;
                  ui:childIndex 0 ;
                ] ;
              ui:childIndex 0 ;
              ui:condition [
                  rdf:type sp:bound ;
                  sp:arg1 [
                      sp:varName "text"^^xsd:string ;
                    ] ;
                ] ;
            ] ;
          ui:childIndex 0 ;
        ] ;
    ] ;
  rdfs:comment "A text box showing the dc:description (if exists) or the 
rdfs:resource of a given resource. Does nothing if none of those properties has 
a value."^^xsd:string ;
  rdfs:label "Description"^^xsd:string ;
  rdfs:subClassOf facet.ui:Elements ;
.
facet.ui:Elements
  rdf:type ui:NodeClass ;
  ui:abstract "true"^^xsd:boolean ;
  rdfs:label "Elements"^^xsd:string ;
  rdfs:subClassOf ui:Element ;
.
facet.ui:Link
  rdf:type ui:NodeClass ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:resource ;
      spl:valueType rdfs:Resource ;
      rdfs:comment "The resource to display."^^xsd:string ;
    ] ;
  ui:prototype [
      rdf:type ui:createLink ;
      ui:child [
          rdf:type html:A ;
          html:class "resourceSummaryLink"^^xsd:string ;
          html:href [
              sp:varName "link"^^xsd:string ;
            ] ;
          ui:child [
              rdf:type ui:TextNode ;
              ui:childIndex 0 ;
              ui:text [
                  rdf:type ui:label ;
                  sp:arg1 [
                      sp:varName "resource"^^xsd:string ;
                    ] ;
                ] ;
            ] ;
          ui:childIndex 0 ;
        ] ;
      ui:resource [
          sp:varName "resource"^^xsd:string ;
        ] ;
    ] ;
  rdfs:comment "The summary's header that also links to the main page for the 
given resource."^^xsd:string ;
  rdfs:label "Link"^^xsd:string ;
  rdfs:subClassOf facet.ui:Elements ;
.
facet.ui:SearchView
  rdf:type ui:NodeClass ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:type ;
      spl:valueType rdfs:Class ;
      rdfs:comment "The type of instances to search for."^^xsd:string ;
    ] ;
  ui:headIncludes [
      rdf:type ui:group ;
      ui:child [
          rdf:type html:Link ;
          html:href "lib/facet/facet.css"^^xsd:string ;
          html:rel "stylesheet"^^xsd:string ;
          html:type "text/css"^^xsd:string ;
          ui:childIndex 0 ;
        ] ;
      ui:child [
          rdf:type html:Script ;
          html:src "lib/facet/facet.js"^^xsd:string ;
          ui:childIndex 2 ;
        ] ;
      ui:child [
          rdf:type html:Script ;
          html:src "lib/facet/jquery-1.4.4.min.js"^^xsd:string ;
          ui:childIndex 1 ;
        ] ;
    ] ;
  ui:prototype [
      rdf:type ui:group ;
      ui:child [
          rdf:type html:H1 ;
          css:margin-left "4px"^^xsd:string ;
          ui:child [
              rdf:type ui:TextNode ;
              ui:childIndex 0 ;
              ui:text "TopBraid Faceted Search"^^xsd:string ;
            ] ;
          ui:childIndex 0 ;
        ] ;
      ui:child [
          rdf:type html:Script ;
          ui:child [
              rdf:type ui:TextNode ;
              ui:childIndex 0 ;
              ui:text """$('body').ajaxError(function() {
                                alert('Communication error with server');
                        });"""^^xsd:string ;
            ] ;
          ui:childIndex 1 ;
        ] ;
      ui:child [
          rdf:type html:Table ;
          ui:child [
              rdf:type html:Tr ;
              ui:child [
                  rdf:type html:Td ;
                  css:width "300px"^^xsd:string ;
                  html:id "facetsCell"^^xsd:string ;
                  html:valign "top"^^xsd:string ;
                  ui:child [
                      rdf:type html:Div ;
                      html:id "facetsProgressIndicator"^^xsd:string ;
                      ui:child [
                          rdf:type ui:TextNode ;
                          ui:childIndex 0 ;
                          ui:text "Loading..."^^xsd:string ;
                        ] ;
                      ui:childIndex 0 ;
                    ] ;
                  ui:child [
                      rdf:type html:Script ;
                      ui:child [
                          rdf:type ui:TextNode ;
                          ui:childIndex 0 ;
                          ui:text "startFacets(\""^^xsd:string ;
                        ] ;
                      ui:child [
                          rdf:type ui:TextNode ;
                          ui:childIndex 1 ;
                          ui:text [
sp:varName "type"^^xsd:string ;
                            ] ;
                        ] ;
                      ui:child [
                          rdf:type ui:TextNode ;
                          ui:childIndex 2 ;
                          ui:text "\");"^^xsd:string ;
                        ] ;
                      ui:childIndex 1 ;
                    ] ;
                  ui:childIndex 0 ;
                ] ;
              ui:child [
                  rdf:type html:Td ;
                  css:width "400px"^^xsd:string ;
                  html:id "resultsCell"^^xsd:string ;
                  html:style "padding-left: 32px"^^xsd:string ;
                  html:valign "top"^^xsd:string ;
                  ui:childIndex 1 ;
                ] ;
              ui:childIndex 0 ;
            ] ;
          ui:childIndex 2 ;
        ] ;
    ] ;
  rdfs:comment "A complete Faceted search view."^^xsd:string ;
  rdfs:label "Search view"^^xsd:string ;
  rdfs:subClassOf facet.ui:Elements ;
.
facet.ui:Summary
  rdf:type ui:NodeClass ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:resource ;
      spl:valueType rdfs:Resource ;
      rdfs:comment "The resource to display."^^xsd:string ;
    ] ;
  ui:prototype [
      rdf:type html:Div ;
      html:class "resourceSummaryBox"^^xsd:string ;
      ui:child [
          rdf:type facet.ui:Description ;
          arg:resource [
              sp:varName "resource"^^xsd:string ;
            ] ;
          ui:childIndex 1 ;
        ] ;
      ui:child [
          rdf:type facet.ui:Link ;
          arg:resource [
              sp:varName "resource"^^xsd:string ;
            ] ;
          ui:childIndex 0 ;
        ] ;
    ] ;
  rdfs:comment "The default summary display, with a link to the resource's main 
page at the top, and a description at the bottom."^^xsd:string ;
  rdfs:label "Summary"^^xsd:string ;
  rdfs:subClassOf facet.ui:Elements ;
.
facet.ui:WithImage
  rdf:type ui:NodeClass ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:imageProperty ;
      spl:valueType rdf:Property ;
      rdfs:comment "The root image property. The \"first\" value of this 
property, including its sub-properties, will be used."^^xsd:string ;
    ] ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate arg:resource ;
      spl:valueType rdfs:Resource ;
      rdfs:comment "The resource to display."^^xsd:string ;
    ] ;
  ui:prototype [
      rdf:type html:Table ;
      ui:child [
          rdf:type html:Tr ;
          ui:child [
              rdf:type html:Td ;
              html:valign "top"^^xsd:string ;
              html:width "100%"^^xsd:string ;
              ui:child [
                  rdf:type ui:insertionPoint ;
                  ui:childIndex 0 ;
                  ui:pointId "main"^^xsd:string ;
                ] ;
              ui:childIndex 0 ;
            ] ;
          ui:child [
              rdf:type html:Td ;
              html:valign "top"^^xsd:string ;
              let:image [
                  rdf:type sp:Select ;
                  sp:resultVariables (
                      [
                        sp:varName "image"^^xsd:string ;
                      ]
                    ) ;
                  sp:where (
                      [
                        rdf:type sp:TriplePath ;
                        sp:object [
                            sp:varName "imageProperty"^^xsd:string ;
                          ] ;
                        sp:path [
                            rdf:type sp:ModPath ;
                            sp:modMax -2 ;
                            sp:modMin 0 ;
                            sp:subPath rdfs:subPropertyOf ;
                          ] ;
                        sp:subject [
                            sp:varName "property"^^xsd:string ;
                          ] ;
                      ]
                      [
                        sp:object [
                            sp:varName "image"^^xsd:string ;
                          ] ;
                        sp:predicate [
                            sp:varName "property"^^xsd:string ;
                          ] ;
                        sp:subject [
                            sp:varName "resource"^^xsd:string ;
                          ] ;
                      ]
                    ) ;
                ] ;
              ui:child [
                  rdf:type html:Img ;
                  html:class "resourceSummaryImage"^^xsd:string ;
                  html:src [
                      sp:varName "image"^^xsd:string ;
                    ] ;
                  ui:childIndex 0 ;
                ] ;
              ui:childIndex 1 ;
            ] ;
          ui:childIndex 0 ;
        ] ;
    ] ;
  rdfs:comment "A container with a main component to the left and an image to 
the right. The image will be fetched from the provided resource via a given 
property (such as foaf:depiction). The main component needs to be inserted 
using ui:insert with ui:into=\"main\"."^^xsd:string ;
  rdfs:label "With image"^^xsd:string ;
  rdfs:subClassOf facet.ui:Elements ;
.
arg:imageProperty
  rdf:type rdf:Property ;
  rdfs:label "image property"^^xsd:string ;
  rdfs:subPropertyOf sp:arg ;
.
arg:resource
  rdf:type rdf:Property ;
  rdfs:label "resource"^^xsd:string ;
  rdfs:subPropertyOf sp:arg ;
.
arg:type
  rdf:type rdf:Property ;
  rdfs:label "type"^^xsd:string ;
  rdfs:subPropertyOf sp:arg ;
.
rdfs:Class
  ui:instanceView [
      rdf:type facet.ui:SearchView ;
      arg:type spin:_this ;
      ui:id "facets"^^xsd:string ;
      ui:priority "-13"^^xsd:string ;
    ] ;
.
rdfs:Resource
  ui:instanceView [
      rdf:type facet.ui:Summary ;
      arg:resource spin:_this ;
      ui:id "facetSummary"^^xsd:string ;
      ui:priority "-11"^^xsd:string ;
    ] ;
.

Reply via email to