I was too quick - should have included a GRAPH ?projectGraph { ... } clause, i.e.

INSERT {
    GRAPH ?projectGraph {
?projectGraph spin:imports <http://topbraid.org/examples/kennedysSPIN>
    }
}
WHERE {
    () teamwork:readableGraphsUnderTeamControl (?projectGraph ?teamGraph)
}

Note that this would apply the constraint library to all EVN graph. To limit them to Vocabularies, check for the rdf:type of the ?projectGraph in the GRAPH ?projectGraph. You can experiment with these queries within TBC-ME, starting with a CONSTRUCT or SELECT query before turning it into an INSERT.

HTH
Holger


On 22/02/2017 19:26, Holger Knublauch wrote:
Do you have some many existing taxonomies that this needs to be automated? This could be done through an INSERT query would need to walk through all the relevant vocabularies and add ?graph spin:imports ?import to them.

INSERT {
    ?projectGraph spin:imports <http://topbraid.org/examples/kennedysSPIN>
}
WHERE {
    () teamwork:readableGraphsUnderTeamControl (?projectGraph ?teamGraph)
}

Holger


On 22/02/2017 18:25, patricia blanco wrote:
Hi Holger, I understand now that the solution you mentioned was for newly created taxonomies, but I was trying to add them by default to current existing taxonomies. Is that possible?

Thanks,
Patricia.

El miércoles, 22 de febrero de 2017, 1:28:23 (UTC+1), Holger Knublauch escribió:

    Hi Patricia,

    we may be talking about different things then. I have verified
    that if you put the attached file into a 5.2 workspace then any
    newly created Taxonomy will have kennedysSPIN as default import
    under "Constraint Libraries". Note that this only affects newly
    created taxonomies.

    You may need to clarify what you are exactly trying to change.

    Thanks
    Holger


    On 21/02/2017 20:10, patricia blanco wrote:
    I'm using EVN Version 5.2.0.v20160909-1520B and TBC version 5.2.0

    El martes, 21 de febrero de 2017, 10:25:28 (UTC+1), Holger
    Knublauch escribió:

        What version are you using?

        Thanks,
        Holger


        On 21/02/2017 19:06, patricia blanco wrote:
        Hi Holger! thank you very much for your response, but
        unfortunately it's not working for me :(. I added exactly
        as you mentioned (using taxonomies:ProjectType) but the
        constraint did not appear as default in includes in current
        taxonomies. Any suggestions?

        Thanks,
        Patricia.



        El domingo, 12 de febrero de 2017, 6:26:04 (UTC+1), Holger
        Knublauch escribió:

            Hi Patricia,

            this is done declaratively by adding a triple to a
            ui.ttlx file and then uploading that file to the
            server's workspace. I have attached an example which
            adds a default SPIN imports to all Ontology
            vocabularies that you create. The same mechanism works
            for other vocab types, e.g. use taxonomies:ProjectType
            for Taxonomies.

            The main triple to add is

            ontologyprojects:ProjectType
              teamwork:spinImports
            "http://topbraid.org/examples/kennedysSPIN";
            <http://topbraid.org/examples/kennedysSPIN> .

            HTH
            Holger


            On 11/02/2017 1:07, patricia blanco wrote:
            Hi! I would like to know how I can add my created
            custom constraints by default to the 'includes' in
            general tab? For eg. just as  'SPIN Standard Library'
            is included by default.

            Thanks!
-- You received this message because you are subscribed
            to the Google Group "TopBraid Suite Users", the topics
            of which include the TopBraid Suite family of products
            and its base technologies such as SPARQLMotion, SPARQL
            Web Pages and SPIN.
            To post to this group, send email to
            [email protected]
            ---
            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].
            For more options, visit
            https://groups.google.com/d/optout
            <https://groups.google.com/d/optout>.

-- You received this message because you are subscribed to the
        Google Group "TopBraid Suite Users", the topics of which
        include the TopBraid Suite family of products and its base
        technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
        To post to this group, send email to
        [email protected]
        ---
        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].
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.

-- You received this message because you are subscribed to the
    Google Group "TopBraid Suite Users", the topics of which include
    the TopBraid Suite family of products and its base technologies
    such as SPARQLMotion, SPARQL Web Pages and SPIN.
    To post to this group, send email to [email protected]
    <javascript:>
    ---
    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]
    <javascript:>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
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]>.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include the TopBraid Suite family of products and 
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to