To test I just created a simple RDF file TBC. I am attaching the file along.
I am using rdfs:Resource as below :
*<swa:BorderLayout arg:southSize="150" arg:style="width: 400px; height:
400px">*
* <swa:Window arg:id="searchFormWindow" arg:layoutPanel="center"
arg:title="Search Form">*
* <swa:FormSearchGadget
arg:classSelectedEvent="org.example.classSelected" ui:args="*"/>*
* <div>*
* <h3>Please select a property</h3>*
* <div>*
* <span>Property: </span>*
* <swa:AutoComplete arg:id="property"
arg:type="rdfs:Resource"/>*
* <br/>*
* <br/>*
* <button onclick="alert('Selected: ' +
$('#property').val())">Show Selection</button>*
* </div>*
* </div>*
* </swa:Window>*
* <swa:Window arg:id="searchGridWindow" arg:layoutPanel="south"
arg:title="Search Results">*
* <swa:GridSearchResultsGadget
arg:resourceSelectedEvent="org.example.resourceSelected"/>*
* </swa:Window>*
*</swa:BorderLayout>*
In the html page I have this :
*swa.queryGraphURI =
"http://rdfex.org/withImports?uri=http://topbraid.org/examples/testRDF
<http://rdfex.org/withImports?uri=http://topbraid.org/examples/testRDF>";*
On Thu, Mar 24, 2016 at 4:33 AM, Holger Knublauch <[email protected]>
wrote:
> This is really weird. The serialization really should not make a
> difference. The only explanation I have would be that the owl: namespace is
> somehow pointing at something else than we believe. If you can't get it to
> work, please send a minimal but complete set of RDF files for us to
> reproduce the problem. We are otherwise speculating on an incomplete
> picture.
>
> Holger
>
>
>
> On 24/03/2016 0:01, Shreelakshmi G.M wrote:
>
> Thanks Irene I will try saving RDF to turtle and check.
> On Mar 23, 2016 7:16 PM, "Irene Polikoff" <[email protected]> wrote:
>
>> OK, we will investigate.
>>
>> As an aside, you can save your RDF/XML file in Turtle by using Export >
>> TopBraid Composer > Export/Merge/Convert RDF Graphs.
>>
>> Irene Polikoff
>>
>> From: "Shreelakshmi G.M" <[email protected]>
>> Reply-To: < <[email protected]>
>> [email protected]>
>> Date: Wednesday, March 23, 2016 at 9:42 AM
>> To: TopBraid Suite Users <[email protected]>
>> Subject: Re: [topbraid-users] customized seach function
>>
>> Yes, it opens. Actually, I created RDF/XML file in TBC itself. To test I
>> created one .rdf file and one .ttl file with 2 classes and some instances.
>> Then I tried using rdfs: Resource. It works with .ttl and not with .rdf.
>> On Mar 23, 2016 6:47 PM, "Irene Polikoff" <[email protected]> wrote:
>>
>>> This sounds peculiar. By the time you are running your code, everything
>>> should already be de-serialised.
>>>
>>> Can you successfully open your RDF/XML file in TBC?
>>>
>>> Irene Polikoff
>>>
>>> From: "Shreelakshmi G.M" <[email protected]>
>>> Reply-To: <[email protected]>
>>> Date: Wednesday, March 23, 2016 at 7:11 AM
>>> To: TopBraid Suite Users < <[email protected]>
>>> [email protected]>
>>> Subject: Re: [topbraid-users] customized seach function
>>>
>>> I could recognize the where the problem is. If I use .ttl serialization,
>>> I can use rdfs:Resource to list all resources but the same cannot be done
>>> using RDF/XML serialization.
>>> Is there any solution for this as I have already built an ontology in
>>> RDF/XML which I need to use.
>>>
>>> On Tue, Mar 22, 2016 at 3:29 PM, Shreelakshmi G.M < <[email protected]>
>>> [email protected]> wrote:
>>>
>>>> To make it simple, I just created a RDF file with single owl class in
>>>> it, even that class is also not listed by rdfs:Resource argument.
>>>>
>>>> * <owl:Class rdf:ID="t">*
>>>> * <rdfs:label rdf:datatype="
>>>> <http://www.w3.org/2001/XMLSchema#string>http://www.w3.org/2001/XMLSchema#string
>>>> <http://www.w3.org/2001/XMLSchema#string>"*
>>>> * >t</rdfs:label>*
>>>> * </owl:Class>*
>>>>
>>>> This is the snippet for class in RDF file.
>>>>
>>>> On Tue, Mar 22, 2016 at 11:00 AM, Shreelakshmi G.M <
>>>> <[email protected]>[email protected]> wrote:
>>>>
>>>>> @Irene Polikoff : yes with owl:Class I get all the classes and with
>>>>> owl:Thing I get all instances. I need both classes and instances in a
>>>>> single Autocomplete tag.
>>>>>
>>>>> @Holger Knublauch: yes all the instances have rdfs:label in the RDF
>>>>> file I am using and the file is bult using TBC itself.
>>>>>
>>>>> this is the snippet for one of the instance in the RDF file :
>>>>>
>>>>> *<prefixA:classA rdf:ID="instanceA">*
>>>>> * <rdfs:label rdf:datatype="
>>>>> <http://www.w3.org/2001/XMLSchema#string>http://www.w3.org/2001/XMLSchema#string
>>>>> <http://www.w3.org/2001/XMLSchema#string>">instanceA</rdfs:label>*
>>>>> * </prefixA:classA>*
>>>>>
>>>>> On Tue, Mar 22, 2016 at 5:05 AM, Holger Knublauch <
>>>>> <[email protected]>[email protected]> wrote:
>>>>>
>>>>>> I have just tried that, using swadoc:AutoCompleteExample:
>>>>>>
>>>>>> <swa:AutoComplete arg:id="property" arg:type="rdfs:Resource"/>
>>>>>>
>>>>>>
>>>>>> and it appears to work fine for me - all resources show up. Are you
>>>>>> sure that all instances in your data have rdfs:labels etc?
>>>>>>
>>>>>> Holger
>>>>>>
>>>>>>
>>>>>> On 22/03/2016 1:11, Irene Polikoff wrote:
>>>>>>
>>>>>> Have you tried rdfs:Resource as the arg:type?
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>> On Mar 21, 2016, at 6:04 AM, Shreelakshmi G.M < <[email protected]>
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>> Yes. i am embedding the SWA components in html, and I am following
>>>>>> the example that is there in TBC.
>>>>>> In html page I have this *swa.queryGraphURI = "
>>>>>> <http://rdfex.org/withImports?uri=http://www.kanoe.org/ontology/myGraph>http://rdfex.org/withImports?uri=http://www.kanoe.org/ontology/myGraph
>>>>>> <http://rdfex.org/withImports?uri=http://www.kanoe.org/ontology/myGraph>";*
>>>>>>
>>>>>>
>>>>>> On Mon, Mar 21, 2016 at 3:22 PM, Holger Knublauch <
>>>>>> <[email protected]>[email protected]> wrote:
>>>>>>
>>>>>>> Have you tried rdfs:Resource? (This assumes you are operating on a
>>>>>>> graph that has all imports including the system triples - using
>>>>>>> _withImports=true on the servlet or ui:graphWithImports(?graph) on the
>>>>>>> graph would do this.
>>>>>>>
>>>>>>> Holger
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 21/03/2016 19:39, Shreelakshmi G.M wrote:
>>>>>>>
>>>>>>> I would like to create customized form where there would be search
>>>>>>> functionality which is just a keyword search i.e it may search either a
>>>>>>> class or a property or an instance.
>>>>>>> Autocomplete did not work as it can be either for class or for
>>>>>>> instance. whatever we give in arg:type that will be searched. owl:Thing
>>>>>>> is
>>>>>>> for instances and owl:Class is for class. Let me know what should be the
>>>>>>> arg:type to search all these.
>>>>>>>
>>>>>>> -Shreelakshmi
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Group "TopBraid Suite Users", the topics of which include Enterprise
>>>>>>> Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
>>>>>>> Composer,
>>>>>>> TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and
>>>>>>> SPIN.
>>>>>>> To post to this group, send email to
>>>>>>> <[email protected]>[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]>
>>>>>>> [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 Enterprise
>>>>>>> Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
>>>>>>> Composer,
>>>>>>> TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and
>>>>>>> SPIN.
>>>>>>> To post to this group, send email to
>>>>>>> <[email protected]>[email protected]
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>> the Google Groups "TopBraid Suite Users" group.
>>>>>>> To unsubscribe from this topic, visit
>>>>>>> <https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe>
>>>>>>> https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>> <[email protected]>
>>>>>>> [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 Enterprise
>>>>>> Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
>>>>>> Composer,
>>>>>> TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>>>>>> To post to this group, send email to
>>>>>> <[email protected]>[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]>
>>>>>> [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 Enterprise
>>>>>> Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
>>>>>> Composer,
>>>>>> TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>>>>>> To post to this group, send email to
>>>>>> <[email protected]>[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]>
>>>>>> [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 Enterprise
>>>>>> Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
>>>>>> Composer,
>>>>>> TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>>>>>> To post to this group, send email to
>>>>>> <[email protected]>[email protected]
>>>>>> ---
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "TopBraid Suite Users" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> <https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe>
>>>>>> https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe
>>>>>> .
>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>> <[email protected]>
>>>>>> [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 Enterprise Vocabulary
>>> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
>>> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>>> To post to this group, send email to <[email protected]>
>>> [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]>
>>> [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 Enterprise Vocabulary
>>> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
>>> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>>> To post to this group, send email to <[email protected]>
>>> [email protected]
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "TopBraid Suite Users" group.
>>> To unsubscribe from this topic, visit
>>> <https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe>
>>> https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> [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 Enterprise Vocabulary
>> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
>> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>> To post to this group, send email to <[email protected]>
>> [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.
>> --
>> You received this message because you are subscribed to the Google Group
>> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
>> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
>> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>> To post to this group, send email to <[email protected]>
>> [email protected]
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TopBraid Suite Users" group.
>> To unsubscribe from this topic, visit
>> <https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe>
>> https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [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 Enterprise Vocabulary
> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
> Live, TopBraid Insight, 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.
>
>
> --
> You received this message because you are subscribed to the Google Group
> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
> Live, TopBraid Insight, 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 a topic in the
> Google Groups "TopBraid Suite Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/topbraid-users/YckJr7AkueY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [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 Enterprise Vocabulary
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live,
TopBraid Insight, 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.
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:testRDF="http://www.kanoe.org/ontology/testRDF#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xml:base="http://www.kanoe.org/ontology/testRDF">
<owl:Ontology rdf:about="">
<owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Created with TopBraid Composer</owl:versionInfo>
</owl:Ontology>
<owl:Class rdf:ID="ClassA">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>ClassA</rdfs:label>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
</owl:Class>
<owl:Class rdf:ID="ClassB">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>ClassB</rdfs:label>
<rdfs:subClassOf rdf:resource="#ClassA"/>
</owl:Class>
<testRDF:ClassB rdf:ID="b">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>b</rdfs:label>
</testRDF:ClassB>
<testRDF:ClassB rdf:ID="a">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>a</rdfs:label>
</testRDF:ClassB>
</rdf:RDF>
<!-- Created with TopBraid -->