<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : NSI-Response-Examples
    Created on : 23 August 2006, 15:55
    Author     : Yusri Bong 
    Description: Example for LCS, GCS, Rewriting and Matching response
-->




<responses xmlns="http://dl.kr.org/dig/lang/schema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:nsi="http://http://dl.kr.org/dig/lang/NSI"
        xsi:schemaLocation="http://dl.kr.org/dig/lang/schema http://homepages.cs.manchester.ac.uk/~seanb/dig/schema.xsd"
        nsi:schemaLocation="http://dl.kr.org/dig/lang/NSI http://lat.inf.tu-dresden.de/~turhan/NSI/NSI-schema.xsd"
        uri="http://lat.inf.tu-dresden.de/~turhan/NSI/match-response.xml">
		
<!-- GCS response -->

        <descriptions id = 'q1'>
            <intersectionOf>
                <class URI='Parent'/>
                <class URI='Human'/>
                <someValuesFrom>
                    <objectProperty URI="has_child"/>
                    <intersectionOf>
                        <class URI='Human'/>
                        <someValuesFrom>
                            <objectProperty URI="has_child"/>
                            <class URI='Human'/>
                        </someValuesFrom>
                    </intersectionOf>
                </someValuesFrom>
            </intersectionOf>
        </descriptions>
		
<!-- LCS response -->

        <descriptions id='q2'>
            <intersectionOf>
                <class URI='Human'/>
                <someValuesFrom>
                    <objectProperty URI='has_child'/>
                    <intersectionOf>
                        <class URI='Human'/>
                        <someValuesFrom>
                            <objectProperty URI='has_child'/>
                            <class URI='Human'/>
                        </someValuesFrom>
                    </intersectionOf>
                </someValuesFrom>
            </intersectionOf>
        </descriptions>

<!-- find matcher response -->

        <nsi:matchers id='q3'>
            <nsi:matcher>
                <nsi:variable URI='var_1'/>
                <intersectionOf>
                    <class URI='Human'/>
                    <someValuesFrom>
                        <objectProperty URI='has_child'/>
                        <class URI='Human'/>
                    </someValuesFrom>
                </intersectionOf>
            </nsi:matcher>
        </nsi:matchers>

<!-- find matching concepts response -->

        <descriptions id='q4'>
            <class URI='Grandmother'/>
        </descriptions>

<!-- minimal Rewriting response -->

        <descriptions id='q5'>
            <class URI='Parent'/>
        </descriptions>
</responses>		


<!--
Answers : 
	q1 - (and Parent Human (some has_child (and Human (some has_child Human))))
        q2 - (and Human (some has_child (and Human (some has_child Human))))
        q3 - (var_1 (and Human (some has_child Human)))
	q4 - (Grandmother)
	q5 - Parent
    
We assume that the response tag will be added to the core DIG 2.0 schema!
-->

