Hi again !!!

Just wondering what is the best way to traverse a skos tree with a
sparql query and keep the tree intact when exporting to rdfxml. with a
SM script from a web call

So far I have only come up with the following poor attempt which gives
me all the info i need but loses all hireachy if you understand what i
mean.



CONSTRUCT {
    ?list ?p3 ?o3 .
    ?o4 ?p4 ?o5 .
    ?o7 ?p5 ?o8 .

}
WHERE {
    {
        ?s coreModel:source ?arg2 .
        ?s coreModel:page ?arg1 .
        ?s coreModel:contains_List ?list .
        ?singleList ?p3 ?o3 .
        FILTER (?p3 != skos:narrowerTransitive) .
        FILTER (?p3 != skos:semanticRelation) .
    }
    UNION
    {
        ?s coreModel:source ?arg2 .
        ?s coreModel:pageNumber ?arg1 .
        ?s coreModel:contains_List ?list .
        ?list skos:narrower ?o4 .
        ?o4 ?p4 ?o5 .
        FILTER (?p4 != skos:narrowerTransitive) .
        FILTER (?p4 != skos:semanticRelation) .
        FILTER (?p4 != skos:broaderTransitive) .
    } .
  UNION
    {
        ?s coreModel:source ?arg2 .
        ?s coreModel:pageNumber ?arg1 .
        ?s coreModel:contains_List ?list .
        ?list skos:narrower ?o6 .
         ?o6 ?skos:narrower ?o7
        ?o7 ?p5 ?o8 .
        FILTER (?p5 != skos:narrowerTransitive) .
        FILTER (?p5 != skos:semanticRelation) .
        FILTER (?p5 != skos:broaderTransitive) .
    } .

.........
and so on down the tree

Could I possible create a SM script for this,

Also as a feature request, would it be possible to have someway of
permantly seeing all the options on the sparql syntax checker (the red
line of text that appears at the bottom of the screen when writing a
query) if the options are wider than the screen,i know you can hover
over it but it just disappears just at the wrong time lol...

Thanks again and one day maybe I will have learnt enough to be able to
stop pestering you.

John

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to