Skip to content

Commit

Permalink
v1.0.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
vbprofi committed Aug 14, 2022
1 parent 1870853 commit 2972643
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#ignore files and folders
start_git.cmd
47 changes: 47 additions & 0 deletions anf_deu.qry
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
(: Copyright 2022 vbprofi. :)

(:------------------ QUERY PROLOG ------------------:)

(:------------------ NAMESPACES ------------------:)
declare default element namespace "http://www.w3.org/1999/xhtml";

(:------------------ IMPORTS ------------------:)
import module namespace fsi = "http://freedomscientific.com/ResearchItImports" at "ResearchItLibrary.jri";


(:------------------ FUNCTIONS ------------------:)

declare function local:make-link ($link as xs:string, $title as xs:string) as xs:string*
{
('<a href=&quot;', replace($link,",","%2c"), '&quot; target=&quot;_blank&quot;>',
$title, '</a>', $fsi:new_line)
};

declare function local:process-each ($list as node()*) as xs:string*
{
for $item at $count in $list
let $link := local:make-link (data ($item/*[name()='link']), data ($item/*[name()='title']))
let $desc := fsi:output-clean-lines ($item/*[name()='description'])
let $content := fsi:output-clean-lines ($item/*[name()='content'])
return ($link, $desc, $content, $fsi:new_line)
};

declare function local:main ()
{
if (count ($stories)) then
('Es werden jetzt nachfolgend die aktuellen Nachrichten aufgelistet.', $fsi:new_line, $fsi:new_line,
local:process-each ($stories))
else (
"Es konnten keine aktuellen Nachrichten heruntergeladen werden. Vergewissern Sie sich, dass eine Internet-Verbindung besteht.",
$fsi:new_line
)
};
(:------------------ VARIABLES ------------------:)

declare variable $URL := "http://anfdeutsch.com/feed.rss";
declare variable $doc := doc ($URL);
declare variable $stories := $doc/*[name()='rss']/*[name()='channel']/*[name()='item'];

(:------------------ QUERY BODY ------------------:)
local:main ()

5 changes: 5 additions & 0 deletions anf_deu.rul
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Details]
FriendlyName=ANF deutsch
Description=ANF deutsch - Aktuell
Timeout=15000
Version=1.0.0
47 changes: 47 additions & 0 deletions anf_trk.qry
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
(: Copyright 2022 vbprofi. :)

(:------------------ QUERY PROLOG ------------------:)

(:------------------ NAMESPACES ------------------:)
declare default element namespace "http://www.w3.org/1999/xhtml";

(:------------------ IMPORTS ------------------:)
import module namespace fsi = "http://freedomscientific.com/ResearchItImports" at "ResearchItLibrary.jri";


(:------------------ FUNCTIONS ------------------:)

declare function local:make-link ($link as xs:string, $title as xs:string) as xs:string*
{
('<a href=&quot;', replace($link,",","%2c"), '&quot; target=&quot;_blank&quot;>',
$title, '</a>', $fsi:new_line)
};

declare function local:process-each ($list as node()*) as xs:string*
{
for $item at $count in $list
let $link := local:make-link (data ($item/*[name()='link']), data ($item/*[name()='title']))
let $desc := fsi:output-clean-lines ($item/*[name()='description'])
let $content := fsi:output-clean-lines ($item/*[name()='content'])
return ($link, $desc, $content, $fsi:new_line)
};

declare function local:main ()
{
if (count ($stories)) then
('Es werden jetzt nachfolgend die aktuellen Nachrichten aufgelistet.', $fsi:new_line, $fsi:new_line,
local:process-each ($stories))
else (
"Es konnten keine aktuellen Nachrichten heruntergeladen werden. Vergewissern Sie sich, dass eine Internet-Verbindung besteht.",
$fsi:new_line
)
};
(:------------------ VARIABLES ------------------:)

declare variable $URL := "http://firatnews.com/feed.rss";
declare variable $doc := doc ($URL);
declare variable $stories := $doc/*[name()='rss']/*[name()='channel']/*[name()='item'];

(:------------------ QUERY BODY ------------------:)
local:main ()

5 changes: 5 additions & 0 deletions anf_trk.rul
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Details]
FriendlyName=ANF t�rkce
Description=ANF t�rkce - Aktuel
Timeout=15000
Version=1.0.0
47 changes: 47 additions & 0 deletions yöp.qry
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
(: Copyright 2022 vbprofi. :)

(:------------------ QUERY PROLOG ------------------:)

(:------------------ NAMESPACES ------------------:)
declare default element namespace "http://www.w3.org/1999/xhtml";

(:------------------ IMPORTS ------------------:)
import module namespace fsi = "http://freedomscientific.com/ResearchItImports" at "ResearchItLibrary.jri";


(:------------------ FUNCTIONS ------------------:)

declare function local:make-link ($link as xs:string, $title as xs:string) as xs:string*
{
('<a href=&quot;', replace($link,",","%2c"), '&quot; target=&quot;_blank&quot;>',
$title, '</a>', $fsi:new_line)
};

declare function local:process-each ($list as node()*) as xs:string*
{
for $item at $count in $list
let $link := local:make-link (data ($item/*[name()='link']), data ($item/*[name()='title']))
let $desc := fsi:output-clean-lines ($item/*[name()='description'])
let $content := fsi:output-clean-lines ($item/*[name()='content'])
return ($link, $desc, $content, $fsi:new_line)
};

declare function local:main ()
{
if (count ($stories)) then
('Es werden jetzt nachfolgend die aktuellen Nachrichten aufgelistet.', $fsi:new_line, $fsi:new_line,
local:process-each ($stories))
else (
"Es konnten keine aktuellen Nachrichten heruntergeladen werden. Vergewissern Sie sich, dass eine Internet-Verbindung besteht.",
$fsi:new_line
)
};
(:------------------ VARIABLES ------------------:)

declare variable $URL := "http://vbprofi.lima-city.de/rss/yop/";
declare variable $doc := doc ($URL);
declare variable $stories := $doc/*[name()='rss']/*[name()='channel']/*[name()='item'];

(:------------------ QUERY BODY ------------------:)
local:main ()

5 changes: 5 additions & 0 deletions yöp.rul
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Details]
FriendlyName=Yeni �zg�r politika
Description=t�rkce - Aktuel
Timeout=15000
Version=1.0.0

0 comments on commit 2972643

Please sign in to comment.