Sounds like you want SPARQL like this

CONSTRUCT {
?s1 a :C. 
?s2 a :C
}
WHERE {
?s1 a :A.
?s1 :a1 ?value.
?s2 :b2 ?value.
?s2 a :B.
}

> On Aug 26, 2020, at 5:32 AM, dprice <dpr...@topquadrant.com> wrote:
> 
> 
> 
>> On 26 Aug 2020, at 09:26, Monika Yadav <mnk.yadav...@gmail.com 
>> <mailto:mnk.yadav...@gmail.com>> wrote:
>> 
>> I explored many spin map functions but didn't found for this thing. They all 
>> are taking input from one class only and stored result in second class. Any 
>> idea about join in sparql because i able to find match between two 
>> properties of 2 different classes. But i want to do the join and store in 
>> 3rd or wants some inferences based on sparql query i fired.
> 
> As I said, SPARQL CONSTRUCT can create any triples you want (including 
> classes) and is what SPIN Rules use to infer data.
> 
> There is no concept of join in RDF or OWL or SHACL, so I’m not sure what you 
> want though.  Perhaps you could provide a more realistic example of the input 
> (pre-existing triples) and output (inferred triples) you’d like to see?
> 
> Cheers,
> David
> 
>> 
>> On Tue, 25 Aug 2020, 4:46 pm dprice, <dpr...@topquadrant.com 
>> <mailto:dpr...@topquadrant.com>> wrote:
>> The SPIN engine basically infers triples. You can write SPARQL CONSTRUCT 
>> keyword statements as SPIN rules and so can create a new class and add 
>> whatever properties to it that you want to the class and/or create a new 
>> instance of a class and add whatever property values you want to that 
>> instance.
>> 
>> You can mix SPINMap and SPIN rules in the same transform.  See links to a 
>> lot of material and explanation here:
>> 
>> https://www.topquadrant.com/technology/sparql-rules-spin/ 
>> <https://www.topquadrant.com/technology/sparql-rules-spin/>
>> 
>> If possible, you should also consider using SHACL rules to develop your 
>> transform. SHACL Rules is basically SPIN 2.0 as far as TopQuadrant is 
>> concerned. See:
>> 
>> https://spinrdf.org/spin-shacl.html <https://spinrdf.org/spin-shacl.html>
>> 
>> Cheers,
>> David
>> 
>> 
>>> On 25 Aug 2020, at 06:19, mnk.ya...@gmail.com <http://gmail.com/> 
>>> <mnk.yadav...@gmail.com <mailto:mnk.yadav...@gmail.com>> wrote:
>>> 
>>> Hello every one,
>>> I am using top braid maestro edition 6.3.1 for my work. I want to do 
>>> mapping between the two classes. what I exactly want to do is I want to 
>>> compare properties of two different classes anf if there is a match then 
>>> relates the others properties too.
>>> e.g. lets say we have two classes A and B. Lat say A has properties a1, a2 
>>> ,a3 and B has properties b1,b2,b3,b4. Instances of all the properties are 
>>> already imported. if there is match between values of a1 and b2. Then based 
>>> on that match join between two classes takes place or we construct a third 
>>> class which will contain values from both A and B based on match. 
>>>  Any SPINMap function for mapping between two classes in which we join two 
>>> classes based on match between their properties.
>>> 
>>> IF I used Sparql query then I am able to find the match between two 
>>> propeties and output of that. But how to merge two classes based on query 
>>> result.
>>>  i am new to SPARQL anf Top Braid . Please help!!!
>>> Thanks & Regards
>>> 
>>> 
>>> 
>>> -- 
>>> 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 topbraid-users+unsubscr...@googlegroups.com 
>>> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/b5a2713d-805d-4f85-bed7-eece92d25818n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/topbraid-users/b5a2713d-805d-4f85-bed7-eece92d25818n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> UK +44 (0) 7788 561308
>> US +1 (336) 283-0808‬
>> 
>> 
>> -- 
>> 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 topbraid-users+unsubscr...@googlegroups.com 
>> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/1921DEDB-1811-40EF-8DF8-421D3B0ACC51%40topquadrant.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/1921DEDB-1811-40EF-8DF8-421D3B0ACC51%40topquadrant.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 topbraid-users+unsubscr...@googlegroups.com 
>> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/CAAauOwVPPGet4%3Df8jEKd%2BVOk6rKN-btX2ycakOB8k7t1fsfxbg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/CAAauOwVPPGet4%3Df8jEKd%2BVOk6rKN-btX2ycakOB8k7t1fsfxbg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> UK +44 (0) 7788 561308
> US +1 (336) 283-0808‬
> 
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/77E69DB4-3F1B-4448-BDF0-95C5A4987579%40topquadrant.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/77E69DB4-3F1B-4448-BDF0-95C5A4987579%40topquadrant.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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/E0193EF8-DD23-40BD-A0BF-8832A587EAB9%40topquadrant.com.

Reply via email to