let get_prop_id propl =
- let prop = List.hd propl in
+ let prop = fst propl in
if prop="refObj" then "F"
else if prop="backPointer" then "B"
else assert false
let relation_ex rop path rset attl =
- if path = [] then []
- else
let usek = get_prop_id path in
let vvar = if attl = [] then "position"
else List.hd attl
let res = c#exec qq in
(List.map
(function
- [uri;context] -> [(uri,[[(vvar,[context])]])]
+ [uri;context] -> [(uri,[[((vvar, []),[context])]])]
| _ -> assert false )
res#get_list) @ acc
)
let rec rsetl uril vvar =
match uril with
| uri::tl -> let scuri = (*tofname*) uri in
- [(scuri, [[(vvar, [(List.hd tl)])]])]::(rsetl (List.tl tl) vvar)
+ [(scuri, [[((vvar, []), [(List.hd tl)])]])]::(rsetl (List.tl tl) vvar)
| [] -> []
(* prende una resource e una vvar e restituisce la lista delle resource in relazione (refObj o backPointer in base al parametro "path") con tale resource e associa alla proprieta' il nome della vvar contenuto in "attl" *)
let muse path attl r =
- if path = [] then []
- else
let vvar = if attl = [] then "position"
else List.hd attl
in
let uri = fst r in
let furi = tofname uri in
- let dtag = List.hd path in
+ let dtag = fst path in
let dir =
match dtag with
"refObj" -> "/projects/helm/metadata/create4/forward"