Debugger XPath Test

Calling SWI-Prolog from PHP


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


Examples

Querys on Bibliography

[DEBUG=0.7]/bib/[DEBUG=0.6]book/[DEBUG=0.5]title
[DEBUG=0.6]/bib/classic/[DEEP=0.8]//book[@year<2000 avg{3,1} @cost<50]/title
[DEBUG(J=0.5,D=0.5)]/bib/book/title or [DEBUG=0.5]/bib/book/title
[FILTER=0.1][DEBUG(J=0.5,D=0.5)]/bib/book/title or [FILTER=0.1][DEBUG=0.5]/bib/book/title
[FILTER=0.3][DEBUG(J=0.7,D=0.5)]/bib/book/title
[FILTER=0.3][DEBUG(J=0.6,D=0.6)]/bib/classic/[DEEP=0.8]//book[@year<2000 avg{3,1} @cost<50]/title
[FILTER=0.3][DEBUG(J=0.7,D=0.3)]/bib/classic/[DEEP=0.8]//book[@year<2000 avg{3,1} @cost<50]/title
[FILTER=0.3][DEBUG(J=0.7,D=0.7)]/bib/[DEBUG(J=0.6,D=0.6)]book/[DEBUG(J=0.5,D=0.5)]title

Top


In this section you can test the application:

Testing:

Input XML Document:

Top

Resulting XML Document:

Top

Similarity:

sim(around,close_to,0.8).
sim(author, writer, 0.8).
sim(beside,close_to,0.7).
sim(bib, library, 0.9).
sim(book, books, 0.9).
sim(book, novel, 0.8).
sim(book, paper, 0.8).
sim(charge,price,0.8).
sim(close_to,near,0.9).
sim(close_to,nigh,0.6).
sim(cost,price,0.9).
sim(date,year,0.9).
sim(hostal,hotel,0.8).
sim(hotel,guesthouse,0.6).
sim(lido,pool,0.8).
sim(metro,subway,0.7).
sim(metro,underground,0.8).
sim(name,title,0.9).
sim(price,valuation,0.6).
sim(publication,publishing,0.5).
sim(publication,release,0.7).
sim(subtitle, title, 0.2).

Top


Resulting tv Structure:

Top

Input XML document for our examples




Top

 

izmir escort- cratosslot baymavi vdcasino asyabahis tipobet