yacy_search_server/htroot/api/webstructure.xml
Michael Christen 71649a1296 added an api to retrieve the new citation.index with the
webstructure.xml api. This api will respond with details about a single
URL if requested with 'webstructure.xml?about=[url|urlhash|host]'.
2012-03-29 17:22:31 +02:00

37 lines
1.0 KiB
XML

<?xml version="1.0"?>
<webstructure maxhosts="#[maxhosts]#">
#(out)#::
<references direction="out" count="#[domains]#" maxref="#[maxref]#">
#{domains}#
<domain host="#[domain]#" id="#[hash]#" date="#[date]#">
#{citations}#
<reference id="#[refhash]#" count="#[refcount]#">#[refdom]#</reference>
#{/citations}#
</domain>
#{/domains}#
</references>
#(/out)#
#(in)#::
<references direction="in" count="#[domains]#">
#{domains}#
<domain host="#[domain]#" id="#[hash]#" date="#[date]#">
#{citations}#
<reference id="#[refhash]#" count="#[refcount]#">#[refdom]#</reference>
#{/citations}#
</domain>
#{/domains}#
</references>
#(/in)#
#(citations)#::
<citations count="#[anchors]#">
#{anchors}#
<anchor id="#[hash]#" date="#[date]#" count="#[citationscount]#">
#(urle)#::<url>#[url]#</url>#(/urle)#
#{citations}#
#(refurle)#<citation id="#[refhash]#" date="#[refdate]#"/>::<citation id="#[refhash]#" date="#[refdate]#">#[refurl]#</citation>#(/refurle)#
#{/citations}#
</anchor>
#{/anchors}#
</citations>
#(/citations)#
</webstructure>