Hi Carl,

I have tried such a scenario with 5.3 (in beta now, see announcement) and it seems to work fine. I used the schema.org example and imported the attached (dummy) magic property into it, then ran a search and exported the result to CSV:

result,label,myMagicProperty_0
http://topbraid.org/examples/kennedys#AlfredTucker,Alfred Tucker,Alfred Tucker
http://topbraid.org/examples/kennedys#AlinaMojica,Alina Mojica,Alina Mojica
http://topbraid.org/examples/kennedys#AmandaSmith,Amanda Smith,Amanda Smith
...

Could you also try it with 5.3 - there have been related bug fixes recently. If it's still not working, feel free to send details of your magic property.

Regards,
Holger



On 21/03/2017 7:14, Carl Burnett wrote:

“Magic properties” are a great shortcut to allow our EVN users to do common queries that are somewhat complex (e.g., we have a magic property ‘has specialty’ that connects a content asset to a medical specialty via an intermediate concept). But I have noticed that when I attempt to export the results of such a search to a CSV or TSV spreadsheet, I get nothing but a blank result table.

Is this expected behavior? If so, are there plans to add support for exporting results that use magic properties? Thanks.

___

*Carl Burnett***

Ontology Engineer  |  Healthwise

[email protected] <mailto:[email protected]> | www.healthwise.org <http://www.healthwise.org/>

(208) 489-8485

*/Healthwise helps people make better health decisions/*/./

--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
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]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include the TopBraid Suite family of products and 
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- 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].
For more options, visit https://groups.google.com/d/optout.
# baseURI: http://example.org/magic
# imports: http://spinrdf.org/spl
# prefix: magic

@prefix arg: <http://spinrdf.org/arg#> .
@prefix magic: <http://example.org/magic#> .
@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 schema: <http://schema.org/> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/magic>
  rdf:type owl:Ontology ;
  owl:imports <http://spinrdf.org/spl> ;
  owl:versionInfo "Created with TopBraid Composer" ;
.
magic:myMagicProperty
  rdf:type spin:MagicProperty ;
  spin:body [
      rdf:type sp:Select ;
      sp:resultVariables (
          [
            sp:varName "result" ;
          ]
        ) ;
      sp:where (
          [
            rdf:type sp:Bind ;
            sp:expression [
                rdf:type ui:label ;
                sp:arg1 spin:_arg1 ;
              ] ;
            sp:variable [
                sp:varName "result" ;
              ] ;
          ]
        ) ;
    ] ;
  spin:constraint [
      rdf:type spl:Argument ;
      spl:predicate sp:arg1 ;
      spl:valueType rdfs:Resource ;
      rdfs:comment "The Person." ;
    ] ;
  spin:returnType xsd:string ;
  rdfs:domain schema:Person ;
  rdfs:label "my magic property" ;
  rdfs:subClassOf spin:MagicProperties ;
.

Reply via email to