FuzzyXPath Test

Calling SWI-Prolog from PHP


Examples - Testing - Resulting XML Document - Resulting tv Structure - Input XML Document


Examples

/hotels/hotel[/close_to/text()="Sol"]/@name
/hotels/hotel[[DOWN=0.9]//close_to/text()="Sol"]/@name
/hotels/hotel[[DOWN=0.9]//close_to/text()="Callao"]/@name
/hotels/hotel[[DEEP=0.5;DOWN=0.9]//close_to/text()="Callao"]/@name
//hotel[[DEEP=0.5]//close_to/text()="Gran Via"]/@name
//hotel[[DEEP=0.8]//close_to/text()="Sol" avg{1,2} //price/text()<150]/@name

//hotel[services/pool and services/metro]/@name
//hotel[services/pool or services/metro]/@name
//hotel[services/pool avg services/metro]/@name
//hotel[services/pool avg{1,2} services/metro]/@name

//hotel[([DEEP=0.5]//close_to/text()="Gran Via") > 0.75]/@name

//hotel[([DEEP=0.5]//close_to/text()="Gran Via") and+ (//pool avg{3,2} //metro/text()<200)]/@name
//hotel[([DEEP=0.5]//close_to/text()="Gran Via") and (//pool avg{3,2} //metro/text()<200)]/@name
//hotel[([DEEP=0.5]//close_to/text()="Gran Via") and- (//pool avg{3,2} //metro/text()<200)]/@name

/bib[DEEP=0.8;DOWN=0.9]//title
//book[@year<2000 avg{3,1} @price<50]/title
/bib[DEEP=0.5]//book[@year<2000 avg{3,1} @price<50]/title

/bib/[SWAP=0.8]novel/title
/bib/[JUMP=0.5]//title
/[JUMP=0.5]//book/title
/bib/[DELETE=0.5][SWAP=0.9]name
/[DELETE=0.5][JUMP=0.5]//[SWAP=0.9]name
Top

In this section you can test the application:

Testing:

Input XML Document:

Top

Resulting XML Document:

Top

Resulting tv Structure:

Top

Input XML document for our examples


Top

 

izmir escort- cratosslot baymavi vdcasino asyabahis tipobet