Changeset 1604 for fmts/trunk/p/C0XGET3.m
- Timestamp:
- Feb 4, 2013, 6:26:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XGET3.m
r1602 r1604 1 C0XGET3 ; VEN/SMH - Sam's Getters... let's try to make them simple ;2013-0 1-25 4:59PM1 C0XGET3 ; VEN/SMH - Sam's Getters... let's try to make them simple ;2013-02-04 12:00 PM 2 2 ;;1.1;FILEMAN TRIPLE STORE; 3 3 ; 4 4 IEN(N) ; Public $$; Resolved IEN of a stored string such as "rdf:type" in Strings File 5 I +N=N Q N ; We are given the IEN, just return it back 5 6 Q $$IENOF^C0XGET1($$EXT^C0XUTIL(N)) 6 7 ; … … 25 26 QUIT 26 27 GSPO1(G,S,P) ; Public $$; Get Object for A Graph/Subject/Predicate combination 28 ; Supports forward relational navigation for predicates using "." as separator 29 N EP S EP=$P(P,".",2,99) ; Extended Predicate 30 S P=$P(P,".") ; Predicate becomes the first piece 27 31 N O S O=$O(^C0X(101,"GSPO",$$IEN(G),$$IEN(S),$$IEN(P),"")) 28 Q:O="" "" 29 Q ^C0X(201,O,0) 32 Q:O="" "" ; Another end point for recursion 33 Q:$L(EP) $$GSPO1(G,O,EP) ; if we have an extended predicate, recurse 34 Q ^C0X(201,O,0) ; this is the end point of the recursion.
Note:
See TracChangeset
for help on using the changeset viewer.