Hi,

            I just wanted to check if I'm misunderstanding the behavior of
spin:constructor.

 

I built a toy system with one class (Thing_1) containing a spin:constructor
that creates a single triple:

 

CONSTRUCT {

    ?this rdfs:label ?type .

}

WHERE {

    ?this a ?type .

}

 

 

So far so good. I can go to Instance view and create an instance, and sure
enough, it gets created with the label set to the rdf:type.

 

Here's the problem:

I create a separate file that declares a single triple:

 

data:Thing_1_1

  rdf:type constructorTest:Thing_1 ;

.

 

If I import that file into the class-declaration file, I expect the
constructor to fire. But no, nothing happens.

My question is, why not? What constitutes the act of creating a new
instance?

 

I have attached the two toy files in case that makes it easier to understand
my question.

 

(My motivating goal is, given a large data file, I want a bunch of
properties to get populated when I import it. I had been using spin:rules to
do that, but I want to reserve the rules for subsequent calculations, once
all those initial properties get created.)

 

 

- Steve

 

Steven R. Ray, Ph.D.

Distinguished Research Fellow

Carnegie Mellon University

NASA Research Park

Building 23 (MS 23-11)

P.O. Box 1
Moffett Field, CA 94305-0001

Email:    [email protected]

Phone: (650) 587-3780

Cell:      (202) 316-6481

Skype: steverayconsulting

cid:[email protected]

 

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, 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.

Attachment: constructorTest.ttl
Description: Binary data

Attachment: data.ttl
Description: Binary data

Reply via email to