Hi GaBriella,

the SPARQL looks almost right, but I strongly suspect you have used the URI of 
the property *shape* instead of the property itself. So what happens if you 
replace wfpos:IncidentPosition-positionCode with wfpos:positionCode?

Also, to find all cases, replace $this with ?some

Holger


> On 27 Jan 2023, at 12:21 am, 'Branson, GaBriella C' via TopBraid Suite Users 
> <[email protected]> wrote:
> 
> Thank you, Holger. (I really need to learn SPARQL!)
>  
> This is what appears:<image001.png>
>  
> Here is the query:
> <image002.png>
>  
> I searched in the TTL and only found one instance. Is there something else I 
> can try?
>  
> Thanks in advance.
>  
> GaBriella Branson
> Wildland Fire Data Management Program - Knowledge Manager
>  
> Stay Connected! Sign up to receiveĀ  email updates from the Wildland Fire Data 
> Management Program 
> <https://public.govdelivery.com/accounts/USDOI/subscriber/new?qsp=USDOI_6>
> <image003.png>
>  
> From: [email protected] 
> <mailto:[email protected]> <[email protected] 
> <mailto:[email protected]>> On Behalf Of Holger Knublauch
> Sent: Wednesday, January 25, 2023 11:21 PM
> To: [email protected] <mailto:[email protected]>
> Subject: [EXTERNAL] Re: [topbraid-users] Violation of Primary Key Constraint
>  
>  
> 
>  This email has been received from outside of DOI - Use caution before 
> clicking on links, opening attachments, or responding.  
> 
>  
> 
> If you have selected one of the instances with a duplicate primary key on the 
> Form, open the SPARQL Query panel and run a query such as
>  
> SELECT ?other
> WHERE {
> $this ex:primaryKeyProperty ?value .
> ?other ex:primaryKeyProperty ?value .
> FILTER (?other != $this).
> }
>  
> where ex:primaryKeyProperty needs to be the qname of the primary key property.
>  
> In the query above, $this is representing the currently selected instance.
>  
> HTH
> Holger
>  
>  
> 
> 
> On 26 Jan 2023, at 1:28 am, 'GaBriella Branson' via TopBraid Suite Users 
> <[email protected] <mailto:[email protected]>> 
> wrote:
>  
> How do I find the other version of an instance using the same Primary Key? I 
> began getting this error after I deleted and recreated a collection from a 
> TTL file. I'm guessing somehow I didn't remove everything and therefore it 
> now thinks I have a violation. Any suggestions on how to resolve? Thanks in 
> advance! 
>  
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/3de868b5-feb8-4234-9b94-3b2d93fee665n%40googlegroups.com
>  
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Ftopbraid-users%2F3de868b5-feb8-4234-9b94-3b2d93fee665n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7C28c41223eae94c8e4f3608daff764567%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638103180716863499%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=a5bRmxKs%2FZUUat0DzoI8psjMOZzRnwxGHfk8BiOxs%2BM%3D&reserved=0>.
>  
> -- 
> 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/933BC528-392C-403B-AD22-939E1BF59B6E%40topquadrant.com
>  
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Ftopbraid-users%2F933BC528-392C-403B-AD22-939E1BF59B6E%2540topquadrant.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7C28c41223eae94c8e4f3608daff764567%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638103180716863499%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UcjZJQUyjUltBKP7yRjpxKUgKAMV%2FaP3bORedIMf1ds%3D&reserved=0>.
> 
> -- 
> 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/CO6PR09MB7319D148D885830D76E1A0CADACC9%40CO6PR09MB7319.namprd09.prod.outlook.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319D148D885830D76E1A0CADACC9%40CO6PR09MB7319.namprd09.prod.outlook.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/19244BB7-EDC2-46F6-B070-17F53483B421%40topquadrant.com.

Reply via email to