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

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



<nsi:asks xmlns:nsi='http://dl.kr.org/dig/lang/NSI'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xmlns='http://dl.kr.org/dig/lang/schema'
  xsi: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-query.xml"
  kb='|my Knowledge Base|'
  machineName='localhost'
  port='8082'>

    <nsi:gcs id='q1' target='ALE'>
        <nsi:descriptions>
            <class URI='Grandfather'/>
            <class URI='Grandmother'/>
        </nsi:descriptions>
    </nsi:gcs>
        
    <nsi:lcs id='q2' target='ALE'>
        <nsi:descriptions>
            <class URI='Grandfather'/>
            <class URI='Grandmother'/>
        </nsi:descriptions>
    </nsi:lcs>

        
    <nsi:findMatcher id='q3'>
        <nsi:description>
			<class URI="Grandfather"/>
        </nsi:description>

        <nsi:conceptPattern>
			<intersectionOf>
				<nsi:someValuesFrom>
					<objectProperty URI="has_child"/>
					<nsi:variable URI="var_1"/>
				</nsi:someValuesFrom>
				<class URI="Man"/>
			</intersectionOf>
        </nsi:conceptPattern>
    </nsi:findMatcher>
    
    <nsi:findMatchingConcepts id='q4'>
        <nsi:conceptPattern>
			<intersectionOf>
				<nsi:someValuesFrom>
					<objectProperty URI="has_child"/>
					<nsi:variable URI="var_1"/>
				</nsi:someValuesFrom>
				<class URI="Woman"/>
			</intersectionOf>
        </nsi:conceptPattern>
    </nsi:findMatchingConcepts>
    
    
    <nsi:minimalRewriting id='q5'>
        <nsi:description>
			<intersectionOf>
				<someValuesFrom>
					<objectProperty URI="has_child"/>
					<class URI="Human"/>
				</someValuesFrom>
			</intersectionOf>
        </nsi:description>
    </nsi:minimalRewriting>
    
</nsi:asks>

