This function was never called from Java code, but it was called from 
JavaScript front-end code via the SPARQL endpoint in 6.3.x. These calls were 
removed in 6.4.

The call was in the workspace file 
teamwork.topbraidlive.org/ui/teamwork.www/build/taggerApp.bundle.js . In a 6.3 
workspace, that file will contain the string currentContentRootClass. In a 6.4 
workspace, it should not.

An undefined function in SPARQL is not an error, but is treated as an unbound 
value. So, if it's in a FILTER, the filter is treated as false, and if it's in 
a BIND, no value will be bound. This is a (mis?)feature of the SPARQL standard 
in general: Almost any query that matches the SPARQL grammar will evaluate 
without error. At worst it will produce no results.

Richard



> On 19 May 2021, at 05:50, [email protected] <[email protected]> 
> wrote:
> 
> 
> version 6.4, and its a new workspace built under there.  I also searched but 
> couldnt find it - yet network sniffing showed it being called... so I'm 
> guessing its in Java code somewhere..
> 
> Given i can make it work, with just a warning, there must still be something 
> else not quite right - I replicated the imports, metadata, namespaces etc 
> from the CreateTaggerProjectService and AFIACT it works exactly as expected 
> except this one glitch..
> 
> On Wednesday, 19 May 2021 at 12:44:06 UTC+10 Holger Knublauch wrote:
> Hi Rob,
> 
> I cannot find the string currentContentRootClass anymore in our code base, 
> yet I can see it was used in some older versions of taggerprojects.ui.ttlx 
> last year. Is there a mismatch between your workspace and the version of the 
> UI code? What version are you on?
> 
> Holger
> 
> 
> 
> On 2021-05-18 11:00 pm, [email protected] 
> <applewebdata://41796B1B-62F5-46C2-8818-94E5929B3147> wrote:
>> 
>> If I use the UI to create a tagset, when I display a tagged property the 
>> error log shows a warning:
>> 
>> URI <http://evn.topbraidlive.org/tagger#currentContentRootClass> 
>> <http://evn.topbraidlive.org/tagger#currentContentRootClass> has no 
>> registered function factory
>> 
>> when I try to programmitically recreate the tagset, even though all metadata 
>> looks the same, all namespaces look the same it behaves differently - and 
>> the tag display call fails with:
>> 
>> Invalid SPARQL query string: Line 3, column 78: Unresolved prefixed name: 
>> tagger:currentContentRootClass.
>> 
>> and the tag doesnt display..
>> 
>> I cant find this function defined anywhere, but if I run the SPARQL query in 
>> the editor on the graph it appears happy, but shows no result
>> 
>> PREFIX arg: <http://spinrdf.org/arg#> <http://spinrdf.org/arg#>
>> PREFIX dash: <http://datashapes.org/dash#> <http://datashapes.org/dash#>
>> PREFIX dc: <http://purl.org/dc/elements/1.1/> 
>> <http://purl.org/dc/elements/1.1/>
>> PREFIX dcterms: <http://purl.org/dc/terms/> <http://purl.org/dc/terms/>
>> PREFIX defn: <https://surroundaustralia.com/cadastre-3d/def/> 
>> <https://surroundaustralia.com/cadastre-3d/def/>
>> PREFIX deo: <http://purl.org/spar/deo/> <http://purl.org/spar/deo/>
>> PREFIX doco_sop_shapes: <http://purl.org/spar/doco_sop_shapes#> 
>> <http://purl.org/spar/doco_sop_shapes#>
>> PREFIX edg: <http://edg.topbraid.solutions/model/> 
>> <http://edg.topbraid.solutions/model/>
>> PREFIX graphql: <http://datashapes.org/graphql#> 
>> <http://datashapes.org/graphql#>
>> PREFIX imported: <http://topbraid.org/imported#> 
>> <http://topbraid.org/imported#>
>> PREFIX metadata: <http://topbraid.org/metadata#> 
>> <http://topbraid.org/metadata#>
>> PREFIX orb: <http://purl.org/orb/1.0/> <http://purl.org/orb/1.0/>
>> PREFIX owl2xml: <http://www.w3.org/2006/12/owl2-xml#> 
>> <http://www.w3.org/2006/12/owl2-xml#>
>> PREFIX owl: <http://www.w3.org/2002/07/owl#> <http://www.w3.org/2002/07/owl#>
>> PREFIX pattern: <http://www.essepuntato.it/2008/12/pattern#> 
>> <http://www.essepuntato.it/2008/12/pattern#>
>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
>> <http://www.w3.org/2000/01/rdf-schema#>
>> PREFIX sh: <http://www.w3.org/ns/shacl#> <http://www.w3.org/ns/shacl#>
>> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> 
>> <http://www.w3.org/2004/02/skos/core#>
>> PREFIX skosshapes: <http://topbraid.org/skos.shapes#> 
>> <http://topbraid.org/skos.shapes#>
>> PREFIX skosxl: <http://www.w3.org/2008/05/skos-xl#> 
>> <http://www.w3.org/2008/05/skos-xl#>
>> PREFIX smf: <http://topbraid.org/sparqlmotionfunctions#> 
>> <http://topbraid.org/sparqlmotionfunctions#>
>> PREFIX sp: <http://spinrdf.org/sp#> <http://spinrdf.org/sp#>
>> PREFIX spar: <http://purl.org/spar/doco/> <http://purl.org/spar/doco/>
>> PREFIX spin: <http://spinrdf.org/spin#> <http://spinrdf.org/spin#>
>> PREFIX spl: <http://spinrdf.org/spl#> <http://spinrdf.org/spl#>
>> PREFIX sro: <http://salt.semanticauthoring.org/ontologies/sro#> 
>> <http://salt.semanticauthoring.org/ontologies/sro#>
>> PREFIX swa: <http://topbraid.org/swa#> <http://topbraid.org/swa#>
>> PREFIX swrl: <http://www.w3.org/2003/11/swrl#> 
>> <http://www.w3.org/2003/11/swrl#>
>> PREFIX swrlb: <http://www.w3.org/2003/11/swrlb#> 
>> <http://www.w3.org/2003/11/swrlb#>
>> PREFIX tagger: <http://evn.topbraidlive.org/tagger#> 
>> <http://evn.topbraidlive.org/tagger#>
>> PREFIX taggershapes: <http://topbraid.org/taggershapes#> 
>> <http://topbraid.org/taggershapes#>
>> PREFIX teamwork: <http://topbraid.org/teamwork#> 
>> <http://topbraid.org/teamwork#>
>> PREFIX teamworkconstraints: <http://topbraid.org/teamworkconstraints#> 
>> <http://topbraid.org/teamworkconstraints#>
>> PREFIX tosh: <http://topbraid.org/tosh#> <http://topbraid.org/tosh#>
>> PREFIX ui: <http://uispin.org/ui#> <http://uispin.org/ui#>
>> PREFIX xml: <http://www.w3.org/XML/1998/namespace> 
>> <http://www.w3.org/XML/1998/namespace>
>> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
>> <http://www.w3.org/2001/XMLSchema#>
>> 
>> SELECT ?predicate ?predicateLabel ?object WHERE {
>>                     ?subject ?predicate ?object.
>>                     BIND (swa:propertyLabelAtClassOrShapeInGraph(?predicate, 
>> tagger:currentContentRootClass(), ?labelGraph) AS ?predicateLabel) .
>>                 }
>> 
>> or even this cut down version: 
>> 
>> SELECT ?predicateLabel  WHERE {
>>                     ?subject ?predicate ?object.
>>                     BIND ( tagger:currentContentRootClass() AS 
>> ?predicateLabel) .
>>                 }
>> 
>> has no results, but doesnt fail..
>> 
>> What is this expecting to find that it cannot?
>> 
>> 
>> 
> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TopBraid Suite Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <applewebdata://41796B1B-62F5-46C2-8818-94E5929B3147>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/2ea51bc2-2d6b-401b-91e4-7244eedb3a40n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/2ea51bc2-2d6b-401b-91e4-7244eedb3a40n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/201a0640-9592-46c3-b009-bb7295d314b2n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/201a0640-9592-46c3-b009-bb7295d314b2n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/60FB54E8-7E70-4353-9983-BADDE4AB02A9%40topquadrant.com.

Reply via email to