# HG changeset patch # User Chris Cannam # Date 1510142162 0 # Node ID 9e70cd92f14e262c7803c9345c6fce270f195602 # Parent cfe3270a6cb712750e2c0199afd0caac96da7225 Add CMN; add logging outputs diff -r cfe3270a6cb7 -r 9e70cd92f14e classical/static-rdf-server.pl --- a/classical/static-rdf-server.pl Tue Nov 07 16:06:54 2017 +0000 +++ b/classical/static-rdf-server.pl Wed Nov 08 11:56:02 2017 +0000 @@ -3,11 +3,13 @@ :- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')). :- use_module(library(http/http_unix_daemon)). +:- use_module(library(http/http_log)). :- use_module(cliopatria(cliopatria)). :- rdf_db:rdf_load('static-rdf/classicaldb-20091211-d.ttl'). :- set_setting_default(http:prefix, '/classical/cliopatria'). +:- set_setting_default(http:logfile, 'server.log'). :- http_daemon([port(2145), fork(false)]). diff -r cfe3270a6cb7 -r 9e70cd92f14e classical/urispace/log.pl --- a/classical/urispace/log.pl Tue Nov 07 16:06:54 2017 +0000 +++ b/classical/urispace/log.pl Wed Nov 08 11:56:02 2017 +0000 @@ -5,7 +5,7 @@ :- module(log,[log/1,log/2]). -log_file('jamendo-uri.log'). +log_file('classical-uri.log'). log(MessageFormat,Vars) :- sformat(String,MessageFormat,Vars), diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/static-rdf-server.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/static-rdf-server.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,15 @@ +#!/usr/local/bin/swipl + +:- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')). + +:- use_module(library(http/http_unix_daemon)). +:- use_module(library(http/http_log)). +:- use_module(cliopatria(cliopatria)). + +:- rdf_db:rdf_load('static-rdf/classicalmusicnav.rdf'). + +:- set_setting_default(http:prefix, '/cmn/cliopatria'). +:- set_setting_default(http:logfile, 'server.log'). + +:- http_daemon([port(2165), fork(false)]). + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/static-rdf/classicalmusicnav.rdf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/static-rdf/classicalmusicnav.rdf Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,11019 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 1895-1978 + + + WilliamGrant Still + + + + + + + + + + + + 1778-1837 + + + + + + + + + Johann Nepomuk Hummel + + + + + + + + + + + + + + + 1896-1981 + + + + + + + + + + Howard Hanson + + + + + + + + + + 1860-1903 + + + + + + + + + Hugo Wolf + + + + + + + + + 1885-1961 + + + + Wallingford Riegger + + + + + + + + + + + + + + + + + + + + Zolt&aacute;n Kod&aacute;ly + + + 1882-1967 + + + + + + + + + + + + + + + 1928-2007 + + + + + + + + Karlheinz Stockhausen + + + + + + + + + + + 1939- + + + + + + Barbara Kolb + + + + + + + + + + + + + + + + + + + + + + + 1820-81 + + + + Henri Vieuxtemps + + + + + + + + + + + 1760-1842 + + + + + + + + + + + Luigi Cherubini + + + + + + + + + + + + 1825-99 + + + Johann Jr. Strauss + + + + + 1901-74 + + + + + + Harry Partch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + RuthCrawford Seeger + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1854-1925 + + + Moritz Moszkowski + + + + + + 1938- + + + + + + John Harbison + + + + + + + + + + + + + + + + + + + + + 1936- + + + + + + + + Richard Rodney Bennett + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1770-1827 + + + + + + + + + + + + + + + Ludwig van Beethoven + + + + + + + + + + + + + + + + + + + + + 1835-81 + + + + + + + + + + + + + Modest Mussorgsky + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + c1390-1453 + + + John Dunstable + + + + + + + + + + + + + + + + + + + + + + + + + + + 1894-1950 + + + + + + + + + E.J. Moeran + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1898-1937 + + + + + + + + George Gershwin + + + + + 1713-80 + + + + Johann Ludwig Krebs + + + + + + + + + + + + + + + + + + + + + + + 1819-95 + + + + + + Franz von Supp&eacute; + + + + + + + + + 1912-97 + + + + + + + + Conlon Nancarrow + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1923- + + + + + + + + + + + Ned Rorem + + + + + 1890-1974 + + + + + + + + + + Frank Martin + + + + + + + + + + + + + + + + + + + + 1881-1950 + + + + + + + + + Nikolai Miaskovsky + + + + + + + + + + + + + + + + + + + + 1900-90 + + + + + + + + + + + Aaron Copland + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1845-1924 + + + Gabriel Faur&eacute; + + + + + + + + + + + + + + + + + + + + + + + + 1678-1741 + + + + + + + Antonio Vivaldi + + + + + + + + + + + + + + + + 1895-1968 + + + + + + + + + Mario Castelnuovo-Tedesco + + + + + + 1860-1956 + + + + + + + Gustave Charpentier + + + + + + + + + + + 1874-1954 + + + + + + + + Charles Ives + + + + + + + + + 1874-1934 + + + + + + + + + + + + Gustav Holst + + + + + + 1856-1941 + + + + + + + Christian Sinding + + + + + + + + 1897-1957 + + + + + + + + Erich Wolfgang Korngold + + + + + + + + + 1865-1931 + + + + + + + + + + + Carl Nielsen + + + + + + + + + + 1784-1859 + + + + + + + + Louis [Ludwig] Spohr + + + + + + + + + + + 1927- + + + + + + Dominick Argento + + + + + + + 1637-1707 + + + + + + + + + + Dieterich Buxtehude + + + + + + + + + + + + + + + + + + + + + 1714-88 + + + + + + + + Carl Philipp Emanuel Bach + + + + + + + + + + Ariste + + + + + + + Jehan Alain + + + + + + + + + + + + + + + + + + + + + + + + + 1823-92 + + + + + + + + Edouard Lalo + + + + + + + + de + + + + Gilles Binchois + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1812-83 + + + Friedrichvon Flotow + + + + + + 1939- + + + + + + Heinz Holliger + + + + + + + + + + c1500-c1556 + + + + Nicolas Gombert + + + + + + + + + + + + + + 1657-1726 + + + Michel-Richard de Lalande[Delalande] + + + + + + + + 1873-1943 + + + + + + + + + + + + + Sergei Rachmaninov + + + + + + + + + + + + 1932- + + + + + + + + + + + Rodion Shchedrin + + + + + + + + + + 1841-1904 + + + + + + + + + + + + Antonin Dvor&aacute;k + + + + + + + + + + + + + + + + + 1637-1710 + + + + + + + Bernardo Pasquini + + + + + + 1898-1979 + + + + Roy Harris + + + + + + + + + + + + + + + von + + + + + + + + + Alexander Zemlinsky + + + + + + + + 1656-1728 + + + + Marin Marais + + + + + + + + + + + + + + 1902-86 + + + Maurice Durufl&eacute; + + + + + + + Johann Carl Loewe + + + + + + + + + + + + + + + + + 1938- + + + + Joan Tower + + + + + + + + + + + 1921-2006 + + + + + + + + Malcolm Arnold + + + + + + + + + 1681-1767 + + + + + + + + Georg Philipp Telemann + + + + + + + + + + + + + + + + + + + 1867-1950 + + + + + + + + + Charles Koechlin + + + + + + + + + + + + + + + + + + + + + + 1947- + + + + + + John Adams + + + + + + + + + + + + + + + + + + + + + + + + + + + + c1561-1613 + + + + + + Carlo Gesualdo + + + + + + 1572-1656 + + + Thomas Tomkins + + + + + + + + + + + + + 1543-1623 + + + + + + + William Byrd + + + + + + + + + + + + + 1926- + + + HansWerner Henze + + + + + + + 1928-96 + + + + + + Jacob Druckman + + + + + + 1905-98 + + + + + + + + + + + Michael Tippett + + + + + + + + Anatol[y] Lyadov[Liadov] + + + 1855-1914 + + + + + + + + + + + + + + c1575-1623 + + + Thomas Weelkes + + + + + + c1513 - 1555/6 + + + Jacob] Clemensnon Papa [Clement + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1872-1958 + + + Ralph VaughanWilliams + + + + + + + + + + + + 1891-1982 + + + + Federico Moreno Torr&oacute;ba + + + + + + + + + + + + + + + + + + + 1679-1745 + + + Jan [Johann] Dismas Zelenka + + + + + + + + + + + + + + 1908-92 + + + + + + + + + + + + Olivier Messiaen + + + + + 1626-61 + + + + + Louis Couperin + + + + + + + + + + 1900-50 + + + + + + + + + + + Kurt Weill + + + + + + + + + + + 1515/6 - 1565 + + + + + Cipriano de Rore + + + + + + + + + + + + + + + + + c1533-86 + + + + + + Andrea Gabrieli + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1791-1864 + + + + + + + + + Giacomo Meyerbeer + + + + + + + + + + + + + + + + 1782-1840 + + + + + + Niccol&ograve; Paganini + + + + + + + 1782-1837 + + + John Field + + + + + 1874-1935 + + + + + + Josef Suk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1819-80 + + + + + + + Jacques Offenbach + + + + + + + + + + + + + + + 1894-1930 + + + + Peter Warlock + + + + + + + + + + + + + + + + + 1797-1828 + + + + + + + + + + Franz Schubert + + + + + + + + 1868-1917 + + + + + Scott Joplin + + + + + + + + + + + + + + 1925-2003 + + + + + + + Luciano Berio + + + + + 1876-1971 + + + + + + + Carl Ruggles + + + + + + 1834-86 + + + + + + + + Amilcare Ponchielli + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1860-1911 + + + + + + + + + + + + + + Gustav Mahler + + + + + + + + + + 1797-1848 + + + + + + Gaetano Donizetti + + + + + + + + + + + + + + + + 1851-1931 + + + Vincentd' Indy + + + + + + + 1881-1955 + + + + + + + + + + + + + George Enescu + + + + + + + + + + + + + + + + + + + + 1782-1871 + + + + + + + Daniel-Fran&ccedil;ois-Esprit Auber + + + + + + + + + + + 1891-1975 + + + + + + + + + + + Arthur Bliss + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1827-70 + + + + + + + Josef Strauss + + + + + + + + + + + + + + + + 1844-1908 + + + + + + + + + + + + + Nikolay Rimsky-Korsakov + + + + + + + + 1926-87 + + + + + + + Morton Feldman + + + + + + 1890-1959 + + + + + + + + + + + + Bohuslav Martinu + + + + + + + + + + + + + 1644-1704 + + + + Heinrich I. F. von Biber + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1874-1951 + + + + + + + + + + + + + + + Arnold Schoenberg + + + + + + + + + + + + 1906-75 + + + + + + + + + + + + + + + + Dmitry Shostakovich + + + + + + + 1686-1750 + + + + Silvius Leopold Weiss + + + + + + + + + + + + + + + 1897-1965 + + + + Henry Cowell + + + + + + + + + + + + + + + + + + 1829-94 + + + + + + + + + Anton Rubinstein + + + + + 1840-1911 + + + + + + Johan Svendsen + + + + + + + + + + + + + 1770-1836 + + + + + + + Anton Reicha + + + + + + + + 1876-1948 + + + + + + + + + + Ermanno Wolf-Ferrari + + + + + + + 1885-1916 + + + + + + George Butterworth + + + + + + 1936- + + + + + + + + Steve Reich + + + + + 1892-1955 + + + + + + + + + + + Arthur Honegger + + + + + + 1746-1800 + + + + + William Billings + + + + + + + + + + + 1905-74 + + + Andr&eacute; Jolivet + + + + + + + + 1911-2007 + + + + + + + + + + GianCarlo Menotti + + + + + + + + + + + + + + + + + + 1921-92 + + + + + Astor Piazzolla + + + + + + + + + + + + + + 1935- + + + + + + Terry Riley + + + + + + + + + 1909-96 + + + + + + + + + Vagn Holmboe + + + + + 1929- + + + + + + + + + + + + George Crumb + + + + + + + + + + + + + + + + + + + + + + 1683-1764 + + + + + Jean-Philippe Rameau + + + + + + 1778-1839 + + + + + + + Fernando Sor + + + + + + + + + + + + + + c1490-1562 + + + + Adrian Willaert + + + + + + + + + + + + + + + + + 1900-64 + + + + Colin McPhee + + + + + + + + + + 1717-57 + + + + Johann [Jan] Stamitz + + + + + + + + + + + + + + + + + + + + + + + + 1822-90 + + + + + + + + + + Cesar Franck + + + + + + + + + + 1913- + + + + + + Norman Dello Joio + + + + + + + + + 1921-96 + + + + + + + + + + Joonas Kokkonen + + + + + + 1917-86 + + + + + + + Antonio Lauro + + + + + + + + + + + 1925- + + + + + + + + + + + Pierre Boulez + + + + + + + + + + + + + 1697-1764 + + + Jean-Marie Leclair + + + + + + + + + + + Agust&iacute;n BarriosMangor&eacute; + + 1885-1944 + + + + + + + + + 1695-1764 + + + + + Pietro Antonio Locatelli + + + + + + + + c1450-1505 + + + + + + + Jacob Obrecht + + + + + + + + + + + + + 1893-1973 + + + Alois H&aacute;ba + + + + + + + + + + Ruth Seeger Crawford + + + + + + + + + + + + Charles Camille Saint-Sa&euml;ns + + + + + + + + + + + 1567-1620 + + + Thomas Campion + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pietro [Pier] Francesco Cavalli + + + + + + + + + 1621/2 - 1677 + + + + + Matthew Locke + + + + + 1842-1900 + + + + + + Arthur Sullivan + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vito Niccolograve Piccinni + + + + + + + + + + + + + + + + + + + + + 1875-1956 + + + Reinhold Gli&egrave;re + + + + + + + + + + + + + + + + + + + + + + + + 1856-1915 + + + Sergey Taneyev + + + + + 1560/61 - 1628 + + + + + Peter Philips + + + + + + + + 1895-1968 + + + + + + Leo Sowerby + + + + + + + + + + + + + + + + + 1890-1962 + + + + + + + + + Jacques Ibert + + + + + + + + + + + + + 1913-96 + + + + + + Morton Gould + + + + + + + + + + + + + + + + + + + + + + 1922-2001 + + + + + + + + Iannis Xenakis + + + + + + + + + c1450-1517 + + + + + Heinrich Isaac + + + + + + + + + + + + + + + + 1098-1179 + + Hildegardof Bingen + + + + + + + + + + + 1583-1643 + + + + + + + + Girolamo Frescobaldi + + + + + + + + + + + + + + 1562-1621 + + + + + + + + + Jan Sweelinck + + + + + + + + + 1880-1959 + + + + + + + + + Ernest Bloch + + + + + + 1910-92 + + + William Schuman + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1857-1934 + + + + + + + + + + + + + + + Edward Elgar + + + + + + + + + + + + + 1908-86 + + + + + + Lars-Erik Larsson + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1685-1750 + + + + + + + + + + + + + + + Johann Sebastian Bach + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1711-79 + + + William Boyce + + + + + + + + + + + + + + + + + + + 1895-1963 + + + + + + + + + + + Paul Hindemith + + + + + + + + + + + + + + + + c1505-85 + + + + + + Thomas Tallis + + + + + + + + + + + + + + + + + + + + + 1653-1704 + + + + + + Georg Muffat + + + + + + + + + + + + + + + + Johannes Simon Mayr + + + + + + + + + + + + + + + + + + + + + + + + + + + 1801-35 + + + + + + + + Vincenzo Bellini + + + + + + + + + + 1699-1783 + + + + + + + + Johann Adolf Hasse + + + + + + + + + 1743-1805 + + + + + + + + + Luigi Boccherini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1875-1937 + + + + + + + + + + + + + + + + + + + + + + Maurice Ravel + + + + + + + + + + + + + + + + + 1833-87 + + + + + + + + + + + + + Alexander Borodin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1532-94 + + + Orlando di [Orlandus Lassus Lasso + + + + + + + + 1687-1762 + + + + + Francesco Geminiani + + + + + + + + + + + + + 1739-99 + + + + + + + K[C]arl Ditters von Dittersdorf + + + + + + + + + 1935- + + + + + Aulis Sallinen + + + + + + + + + + + + + + + + + + + + + + + + + + + + + von + + + + + + + + + + + Anton Webern + + + + + + + + + 1796-1868 + + + + + + + + Franz Berwald + + + + + 1939- + + + + + + Leo Brouwer + + + + + + + + + + + + + + + 1602-45 + + + + + William Lawes + + + + + + + + + + + + + 1870-1939 + + + + + + Charles Tournemire + + + + + + + + + + + + + 1553/54 - 1599 + + + + + + + Luca Marenzio + + + + + + + + + + 1710-84 + + + + + Wilhelm Friedemann Bach + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1824-84 + + + + + + + + + + Bedrich Smetana + + + + + + + + + + 1774-1851 + + + + + + + + Gaspare Spontini + + + + + 1587-1654 + + + + + Samuel Scheidt + + + + + + + + + + + + 1643-1704 + + + + + + Marc-Antoine Charpentier + + + + + + + + + + + + + + + + + + + + + + 1905-85 + + + + + + William Alwyn + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1892-1974 + + + + + + + + + Darius Milhaud + + + + + + 1945- + + + John Rutter + + + + + 1875-1912 + + + + + + Samuel Coleridge-Taylor + + + + + + + + + + + + + + + + + + + + + + 1908-75 + + + + + + + Leroy Anderson + + + + + + + + + + + + + + c1490-1545 + + + + John Taverner + + + + + + + + + + + + + + + + + + + + + + 1858-1924 + + + + + + + + + + + Giacomo Puccini + + + + + + + + + + + + + 1692-1770 + + + + + + + + Giuseppe Tartini + + + + + + + + + + + 1895-1982 + + + + + + + Carl Orff + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1865-1935 + + + + + + + + + + Paul Dukas + + + + + + + + + + + 1616-67 + + + + + Johann Jakob Froberger + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1683-1729 + + + + + Johann David Heinichen + + + + + + + + + + + + + + + + + + + + + + + + + 1882-1973 + + + + + + + + + + Gian Francesco Malipiero + + + + + + + + + + + + + + + + + + + + + + + + + Charles Louis Ambroise Thomas + + + + + + + + + + + + + + 1882-1961 + + + + + + + + + Percy Grainger + + + + + + + 1685-1757 + + + + + + + + + Domenico Scarlatti + + + + + + + + + + + + + 1880-1951 + + + Nikolay Medtner[Metner] + + + + + + + + Jacques-Fran&ccedil;ois Fromental Hal&eacute;vy + + + + + + + + + + + + 1837-1910 + + + + + + + + + + Mily Balakirev + + + + + + + + + + + + 1865-1936 + + + + + + + + + + Alexander Glazunov + + + + + c1548-1611 + + + + + Tom&aacute;s Luis de Victoria + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1841-94 + + + + + + Emmanuel Chabrier + + + + + + + + + + + + + + + + + + + + + + + + + 1525/6 - 1594 + + + + + + + Giovanni Pierluigi da Palestrina + + + + + 1876-1951 + + + + + + + + + John Alden Carpenter + + + + + + + 1930-96 + + + + + + + + + + Toru Takemitsu + + + + + + c1486 - 1542/3 + + + Ludwig Senfl + + + + + + + + + + + + + + + + + + + + + 1840-93 + + + + + + + + + + + + + + + + + + Pyotr Il'yich Tchaikovsky + + + + + + + + V&iacute;tezslav Nov&aacute;k + + 1870-1949 + + + + + + + + + + + + + + 1857-1919 + + + + + + + + + + Ruggero Leoncavallo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1867-1944 + + + Amy Marcy [Mrs. H. H. A.] Beach + + + + + + + + + + + 1921- + + + + + + Karel Husa + + + + + + + + + 1925- + + + + + + + + + + + + + Gunther Schuller + + + + + + + + + + + + 1863-1937 + + + Gabriel Piern&eacute; + + + + + + + + + + + + + + + 1935- + + + Arvo P&auml;rt + + + + + + + + + + + + 1528-99 + + + + Francisco Guerrero + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1813-83 + + + + + + + + + + + + + + + + + Richard Wagner + + + + + + + + + + c1460-1518 + + + Pierrede La Rue + + + + + + + + + + + + + + + + 1923-98 + + + + + + + + Mel Powell + + + + + + + + + + + + + + + + + 1893-1918 + + + + + + + Lili Boulanger + + + + + + 1877-1933 + + + + + + + + + Sigfrid Karg-Elert + + + + + + + 1906-97 + + + RossLee Finney + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1934- + + + + Mario Davidovsky + + + + + + + + + + + + + + + + + + + + + + 1866-1925 + + + + + + + + + + + + Erik Satie + + + + + + + + + + + 1869-1937 + + + + + + + + Albert Roussel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1852-1924 + + + + + + + + Charles Villiers Stanford + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1934-98 + + + + + + + + + + + Alfred Schnittke[Shnitke] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1842-1912 + + + + + + + + + Jules Massenet + + + + + 1932- + + + + + Pauline Oliveros + + + + + + + + + + + + + + 1861-1935 + + + + + + + + Charles Martin Loeffler + + + + + + + + + + + + + + + + + + + 1938- + + + William Bolcom + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1865-1957 + + + + + + + + + + + + Jean Sibelius + + + + + + + + 1875-1962 + + + + + Fritz Kreisler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1811-86 + + + + + + + + + + + + + + + + + Franz Liszt + + + + + + + + + + + + + + + + + + + + + + + + 1902-83 + + + + + + + + + + + William Walton + + + + + + c1562-1628 + + + John Bull + + + + + + + + + + + + + + + + + + 1605-74 + + + + + Giacomo Carissimi + + + + + + + + + + + 1583-1625 + + + + + + Orlando Gibbons + + + + + + + + + + + + + + + + + + + + + + + + + + + 1911-2000 + + + + Alan Hovhaness + + + + + + + + + 1824-96 + + + + + + + + + + + + + Anton Bruckner + + + + + + + + + + + 1854-1928 + + + + + + + + + + + Leos Jan&aacute;cek + + + + + + + + + + + + 1938- + + + + + + John Corigliano + + + + + + + + + + + + + + + + + + + + + 1585-1672 + + + Heinrich Sch&uuml;tz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1860-1941 + + + + + + Ignacy Jan Paderewski + + + + + + + + + + + + + + + + + + + + + + + Andr&eacute;-Ernest-Modeste Gr&eacute;try + + 1741-1813 + + + + + + + + + + + + + + 1933- + + + + + + + + + + + + + Krzysztof Penderecki + + + + + + + + + + c1500-53 + + + Crist&oacute;bal de Morales + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1803-69 + + + + + + + + + + Hector Berlioz + + + + + + + c1398-1474 + + + + + Guillaume Dufay + + + + + 1918-90 + + + + + + + + + + + + + Leonard Bernstein + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1934- + + + + + + + + + + Peter Maxwell Davies + + + + + + + 1804-49 + + + + Johann Sr. Strauss + + + + + + 1671-1751 + + + + + + + Tomaso Albinoni + + + + + + + + + + + 1649-1708 + + + + John Blow + + + + + + + + + 1939- + + + Ellen Taaffe Zwilich + + + + + 1908- + + + + + + + + + + + Elliott Carter + + + + + + + + + + + + + Carl Otto Nicolai + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1291-1361 + + + Philippede Vitry + + + + + 1697-1773 + + + + + + Johann Joachim Quantz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1923-2006 + + + + + + + + + + + + + + + + + Gy&ouml;rgyS&aacute;ndor Ligeti + + + + + 1763-1826 + + + + + Franz Danzi + + + + + + + + + + + 1879-1941 + + + + + + + + + Frank Bridge + + + + + + + + + + + + + + + + + 1918-2005 + + + + + + + + + + George Rochberg + + + + + + + + + + + 1867-1948 + + + + + + + Umberto Giordano + + + + + + 1938- + + + + + + + + Charles Wuorinen + + + + + + + 1878-1934 + + + + + + + Franz Schreker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1883-1965 + + + + + + + + + Edgard Var&egrave;se + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1922- + + + + + + + Lukas Foss + + + + + + + + + + + + 1904-75 + + + + + + + + + + + + Luigi Dallapiccola + + + + + 1917-2003 + + + + + + + + + Lou Harrison + + + + + + + + + + &Eacute;tienne-Nicolas M&eacute;hul + + + + + + + 1763-1817 + + + + + + + + + + + + + + 1882-1949 + + + + + + + + + + Joaqu&iacute;n Turina + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1879-1962 + + + + + + + + John Ireland + + + + + + 1824-1910 + + + + + + + Carl Reinecke + + + + + + + + + + + + + + + + + + + + 1653-1706 + + + + + + Johann Pachelbel + + + + + + + + + + + + + + 1855-99 + + + + + + + + + Ernest Chausson + + + + + + + + + c1420-97 + + + + + + + Johannes [Okeghem Ockeghem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1786-1826 + + + + + + + + + + Carl Maria von Weber + + + + + + + + + + + + + + + + + + + + B&eacute;la Bart&oacute;k + + + + + + + + + + + + + + + + + + + + + + + 1881-1945 + + + + + + + + + + + + + + + + + + + + + + + + Carlos y Ram&iacute;rez Ch&aacute;vez + + + + + + + + + + + + + 1819-96 + + + + + + Clara Wieck Schumann + + + + + + + + + + + + + + + + + + + + + + + + + + + + C.P. Leacuteo Delibes + + + + + + + + + + + + + + + + + + + 1883-1947 + + + + + + + + + + + Alfredo Casella + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1756-91 + + + + + + + + + + + + + + + + + Wolfgang Amadeus Mozart + + + + + + + + + c1500-66 + + + + Antonio de Cabez&oacute;n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1567-1643 + + + + + + + + + + + Claudio Monteverdi + + + + + + + + + + + + 1899-1977 + + + + Alexander Tcherepnin + + + + + + + + + + + + + + 1887-1959 + + + + + + + + + + + + Heitor Villa-Lobos + + + + + + + + + + + + + + + + + + + + + + 1839-1906 + + + JohnKnowles Paine + + + + + + + + 1924-90 + + + + + + + + Luigi Nono + + + + + + + + + + + + Michael Johann Haydn + + + + + + + + + + + + + + + + + + + + + + + 1903-89 + + + + + + + + + Lennox Berkeley + + + + + + + + + 1870-1937 + + + + + + + Louis Vierne + + + + + 1937- + + + + Philip Glass + + + + + + + + + + + + + + + + Charles Valentin Alkan + + + + + + + 1882-1948 + + + Manuel Ponce + + + + + + + + 1916-83 + + + + + + + + Alberto Ginastera + + + + + + + + + + + c1485-1558 + + + Cl&eacute;ment Janequin + + + + + + + + + + + + + + 1900-91 + + + + + + + + + + + + + + + Ernst Krenek + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1813-1901 + + + + + + + + + + + Giuseppe Verdi + + + + + + + + + + + + + + + + + c1545-1607 + + + + + + + + Luzzasco Luzzaschi + + + + + + + + + + + + + + + + Constant Leonard Lambert + + + + + + 1829-69 + + + + + + Louis Moreau Gottschalk + + + + + + + + 1905-82 + + + + + + + Eduard Tubin + + + + + + + + + + + + + + + + + + + + + + + + + + 1805-47 + + + Fanny Mendelssohn-Hensel + + + + + + + + 1755-1824 + + + + + + GiovanniBattista Viotti + + + + + + + + + + + + + + + + 1891-1953 + + + + + + + + + + + + + + + Sergei Prokofiev + + + + + + + + + + + + + + + + + + + + + + 1582-1652 + + + + Gregorio Allegri + + + + + + + + 1914-62 + + + + + Irving Fine + + + + + + + + + + 1557/58 - 1602 + + + Thomas Morley + + + + + + + + + + + + + + + + + c1440-1521 + + + etc.] JosquinDesprez [des Pr&eacute;s + + + + + + + + + + + + + + + + + + + + 1882-1937 + + + + + + + + + + + + + Karol Szymanowski + + + + + + + + + + + + + + + + + + + + + + + + + + + 1860-1908 + + + + + + + + + + Edward MacDowell + + + + + + + + + + + + + + + + + + + + + + 1838-1920 + + + + + + + Max Bruch + + + + + + + + + + + + + + 1781-1829 + + + + + + Mauro Giuliani + + + + + + 1884-1920 + + + + + + + + + Charles Tomlinson Griffes + + + + + + + + + + + + + + + + + + + + 1632-87 + + + + + + + Jean-Baptiste Lully + + + + + + + + + + + + + + + + Giuseppe Saverio Mercadante + + + + + + + + + 1915- + + + + + George Perle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1792-1868 + + + + + + + + + Gioachino Rossini + + + + + + + + + + + + + + + + + + + + + + 1902-99 + + + Joaqu&iacute;n Rodrigo + + + + + + + + + + + + + + + + Karl Wilhelm Stenhammar + + + + + + + + + + + + + + + + + + + + + 1710-78 + + + Thomas Arne + + + + + + + + + + + + + + + + + 1915-87 + + + Vincent Persichetti + + + + + + + + + + + + + + + + + + + + + + + 1870-1948 + + + + + + + + Franz Leh&aacute;r + + + + + + + + + + + + Joseph Joachim Raff + + + + + + + + + + + 1910-81 + + + + + + + + Samuel Barber + + + + + + + + + 1750-1825 + + + + + Antonio Salieri + + + + + + + + + + + + + + + + + + + + + + + + + 1866-1924 + + + + + + + + + + Ferruccio Busoni + + + + + + + + + + + + + + + + + + + + + + + + + 1714-87 + + + + + + + + + + + + + Christoph W.R. von Gluck + + + + + + + + + + 1879-1936 + + + + + + + + + + + Ottorino Respighi + + + + + + + + + + + + + + + + + + + + + + 1653-1713 + + + + + Arcangelo Corelli + + + + + + + + + + + Marie Joseph Canteloubede Malaret + + + + + + + + + 1863-1945 + + + + + + + + Pietro Mascagni + + + + + + + + + 1859-1924 + + + + Victor Herbert + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Dencausse Federico Mompou + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1817-90 + + + Niels Gade + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1735-82 + + + + + + + + + Johann Christian Bach + + + + + + + 1892-1983 + + + + + + + Germaine Tailleferre + + + + + + + + + + + + + 1899-1963 + + + + + + + + + + + + + + Francis Poulenc + + + + + + + + 1905-64 + + + + + + + + Marc Blitzstein + + + + + + + + + + + + 1660-1741 + + + + + + + Johann Joseph Fux + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Franz Joseph Haydn + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1586-1630 + + + + + + Johann Hermann Schein + + + + + + + + + + 1905-63 + + + + + + + + + + Karl Amadeus Hartmann + + + + + + + + + + 1660-1725 + + + + + + + + + + Alessandro Scarlatti + + + + + + 1639-82 + + + + Alessandro Stradella + + + + + + + + + + + + + + + + + + + + + c1596-1663 + + + + + Heinrich Scheidemann + + + + + + + + + + + + + + 1896-1989 + + + Virgil Thomson + + + + + + + + + + + + + + + + + + + + + 1901-56 + + + + + + + Gerald Finzi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Federico Moreno Torr&oacute;ba + + + + + + + + + + + + + 1933- + + + + Henryk G&oacute;recki + + + + + + + + + + + + + + + + + + + + + + + + + 1813-69 + + + Alexander Dargom&iuml;zhsky + + + + + 1835-1918 + + + + + + Cesar Cui + + + + + + + + + + + + + + + 1700/1 - 1775 + + + + Giovanni Battista Sammartini + + + + + + + + + + + 1904-2003 + + + + + + + Goffredo Petrassi + + + + + + + + + + + + 1902-72 + + + + + + + Stefan Wolpe + + + + + + + + + + + 1867-1916 + + + + + + + + + Enrique Granados + + + + + + + + + + 1850-1900 + + + + + + + + Zdenek Fibich + + + + + + + + + + + + + + 1896-1970 + + + + + + + Roberto Gerhard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1912-97 + + + Jean Fran&ccedil;aix + + + + + + + + 1844-1937 + + + + + + + + Charles-Marie Widor + + + + + + + + + + + + + + + + + + + + + 1658/9 - 1695 + + + + + + + + + + + Henry Purcell + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bartholdy Mendelssohn + + + + + + + + + + + + + + + + + + + + + + c1515 - 1559/60 + + + John Sheppard[Shepherd] + + + + + + + + + + + + + + 1880-1968 + + + + + + + + + + Ildebrando Pizzetti + + + + + + + + + 1775-1834 + + + + + + + Fran&ccedil;ois-Adrien Boieldieu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1873-1916 + + + + + + + + + + + + + + + + Max Reger + + + + + + + 1872-1960 + + + Hugo Alfv&eacute;n + + + + + + + + + + 1861-1906 + + + + + + + Anton Arensky + + + + + + + + + + + + + + + 1838-75 + + + + + + + + + + + + Georges Bizet + + + + + + + + + + + + + + + + c1555-1612 + + + + + + + + Giovanni Gabrieli + + + + + + + + + + + + + + + 1903-78 + + + + + + + + + + + + + + + Aram Khachaturian + + + + + + 1905-88 + + + + + Giacinto Scelsi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1835-80 + + + + + Henryk Wieniawski + + + + + + + + + + + + + + + + 1818-93 + + + + + + + Charles Gounod + + + + + + + + + + + + + + + + + + + + + + + + + 1916- + + + + + + + Henri Dutilleux + + + + + + + + + + + 1804-57 + + + + + + + + + + Mikhail Glinka + + + + + + + + + + + + + + + 1913-94 + + + Witold Lutoslawski + + + + + + + + + + + + + + + + + + 1668-1733 + + + + + + + + Fran&ccedil;ois Couperin + + + + + + + + + + + + + + + 1876-1946 + + + + + + + + + + Manuel de Falla + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1864-1949 + + + + + + + + + + Richard Strauss + + + + + + + + 1944- + + + + + + + John Tavener + + + + + + + + + + + + + + + 1913-76 + + + + + + + + + + + Benjamin Britten + + + + + + + + + + + + + 1907-91 + + + + + + + + Jean Langlais + + + + + + + + + + + + + + + + + 1931- + + + + + + + + + + + Mauricio Kagel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1810-56 + + + + Robert Schumann + + + + + + + + + + + + 1658-1709 + + + + + Giuseppe Torelli + + + + + 1665-97 + + + + Nicolaus Bruhns + + + + + + + + + + + + + + Ramos Soler + + + + + + + 1535-96 + + + + Giachesde Wert + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1843-1907 + + + + + + + + + + Edvard Grieg + + + + + 1791-1857 + + + + + + + C[K]arl Czerny + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1833-97 + + + + + + + + + + + + + + Johannes Brahms + + + + + + 1894-1976 + + + + + + + + + + + Walter Piston + + + + + + + c1619-1674 + + + + + Matthias Weckmann + + + + + + + + + 1896-1985 + + + + + + Roger Sessions + + + + + + + + + + + + + 1714-74 + + + Nicol&ograve; Jommelli + + + + + + + + + + + + + + + + + c1550-1618 + + + + + + + + + + + + + Giulio Caccini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1564-1612 + + + + + + Hans Leo Hassler + + + + + + + + + + + + + + + + + + 1749-1801 + + + + + + + Domenico Cimarosa + + + + + 1899-1984 + + + + Randall Thompson + + + + + + + + + + + + + + + Charles Hubert Parry + + + + + 1911-2006 + + + + + + Erik Bergman + + + + + + + + 1842-1918 + + + + + + + + Arrigo Boito + + + + + + + + + + + + + + + + + + + + + + + + + 1872-1915 + + + + + + + + + + Alexander Scriabin + + + + + + + + + + + 1906-85 + + + + Paul Creston + + + + + + + 1848-1933 + + + + + + + + Henri Duparc + + + + + + + + + + + + + + + + 1923- + + + William Kraft + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1885-1935 + + + + + + + + + + + Alban Berg + + + + + + + + + + 1830-1915 + + + C[K]arl [K&aacute;roly] Goldmark + + + + + + + + + + + + + + + 1877-1960 + + + Ernst von Dohn&aacute;nyi + + + + + + + + + + + + + 1571-1621 + + + + + + + + + Michael Praetorius + + + + + 1740-1816 + + + + + + Giovanni Paisiello + + + + + + + + + + + + + 1745-1801 + + + + K[C]arl Stamitz + + + + + + + + + + + + + + + + 1563-1626 + + + + John Dowland + + + + + + + 1770-1841 + + + + + + Ferdinando Carulli + + + + + + + + + + 1916- + + + + + + + Milton Babbitt + + + + + + + + + + + Charles + + + + + Adolphe Adam + + + + + + + + 1752-1832 + + + + + + + + Muzio Clementi + + + + + + + + + + + + + 1796-1867 + + + + + + + Giovanni Pacini + + + + + c1300-77 + + + + + + + Guillaume de Machaut + + + + + + + + + + + + + 1915-2005 + + + David Diamond + + + + + + + + + + 1805-1900 + + + Johan Peder Emilius [J. P. E.] Hartmann + + + + + + + + + + + + + + + + + + 1860-1909 + + + Isaac Alb&eacute;niz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1892-1983 + + + + + + + + + Herbert Howells + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1810-49 + + + + + + + + + + + + + Fryderyk Chopin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1883-1953 + + + + + + + + + + + Arnold Bax + + + + + + + + 1869-1949 + + + + + + + + + Hans Erich Pfitzner + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1689-1755 + + + + Joseph Bodin de Boismortier + + + + + + + + + + + + + + + + + + + + 1912-92 + + + + + + + + + + + + John Cage + + + + + + + + + + + + + + + + + + + + 1920-73 + + + + + + + + + Bruno Maderna + + + + + 1854-1921 + + + + + + Engelbert Humperdinck + + + + + + + + + + + + + + + + 1685-1759 + + + + + + + + + George Frideric Handel + + + + + + + + + + + + + + + + + + + + + + + + + 1710-36 + + + + + + Giovanni Pergolesi + + + + + + + + + + + + + + + + 1862-1934 + + + + + + + Frederick Delius + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1862-1918 + + + + + + + + + + + + + + + + + + + + Claude Debussy + + + + + + + + + + + + + + Eixea Francisco T&aacute;rrega + + + + + + + + + 1892-1972 + + + + + + + Ferde Grof&eacute; + + + + + + + + + + + + c1160 - c1220 + + + P&eacute;rotin[Perotinus Magnus] + + + + + + + + + + + + + + 1886-1971 + + + Marcel Dupr&eacute; + + + + + + + + + + + + + + + + + + + 1844-1908 + + + + + + Pablo de Sarasate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1882-1971 + + + + + + + + + + + + + + + + + + + Igor Stravinsky + + + + + + + + + + + + + + 1904-87 + + + + + + + + Dmitri Kabalevsky + + + + + + + + + + + 1815-92 + + + + + + + Robert Franz + + + + + + + + + + + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/Makefile Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,10 @@ +# Makefile for P2R + +dist: clean + mkdir dist && tar czvf dist/urispace.tar.gz ../urispace/urispace.pl ../urispace/run.pl ../urispace/mapping.pl ../urispace/config.pl ../urispace/cmn_mapping.pl ../urispace/log.pl ../urispace/Makefile ../urispace/gpl.txt + +clean: + rm -rdf dist/ + + + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/cmn_mapping.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/cmn_mapping.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,54 @@ +:- module(cmn_mapping,[]). + +/** + * Cmn mapping for 303 redirects + */ + +:- use_module(mapping). + +sparql_end_point('http://dbtune.org/cmn/sparql/'). +html_renderer('http://dig.csail.mit.edu/2005/ajar/ajaw/tab.html?uri='). +directory('http://dbtune.org/cmn/all/'). +namespace('http://dbtune.org/cmn/'). + +/** + * Redirecting resources whithin the namespace + */ + +mapping:see_other_rdf(requested_pattern(T),redirect_pattern([SparqlEndPoint,'?query=describe%20%3C',NameSpace,Path,'%3E'])) :- + T\=[all,_], + sparql_end_point(SparqlEndPoint), + namespace(NameSpace), + concat_atom(T,'/',Path). +mapping:see_other(requested_pattern(T),redirect_pattern([Renderer,NameSpace,Path])) :- + T\=[all,_], + html_renderer(Renderer), + namespace(NameSpace), + concat_atom(T,'/',Path). + + +/** + * directories + */ +directory_query(Concept, + [SparqlEndPoint, + '?query=construct { %3fx a ', Concept, + '} where { %3fx a ', Concept, '.}' + ]) :- + sparql_end_point(SparqlEndPoint). + +mapping:see_other_rdf(requested_pattern([all,composer]), redirect_pattern(Query)) :- + directory_query('%3Chttp://dbtune.org/cmn/resource/type/Composer%3E', Query). + +mapping:see_other_rdf(requested_pattern([all,composition]), redirect_pattern(Query)) :- + directory_query('%3Chttp://purl.org/ontology/mo/Composition%3E', Query). + +mapping:see_other_rdf(requested_pattern([all,work]), redirect_pattern(Query)) :- + directory_query('%3Chttp://purl.org/ontology/mo/MusicalWork%3E', Query). + +mapping:see_other_rdf(requested_pattern([all,conductor]), redirect_pattern(Query)) :- + directory_query('%3Chttp://dbtune.org/cmn/resource/type/Conductor%3E', Query). + +mapping:see_other(requested_pattern([all,Concept]),redirect_pattern([Renderer,Directory,Concept])) :- + html_renderer(Renderer), + directory(Directory). diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/config.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/config.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,7 @@ +:-module(config,[port/1]). + +port(2164). + + + + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/gpl.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/gpl.txt Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/log.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/log.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,25 @@ +/** + * Some logging facilities + * Copyright Yves Raimond (c) 2006 + */ +:- module(log,[log/1,log/2]). + + +log_file('cmn-uri.log'). + +log(MessageFormat,Vars) :- + sformat(String,MessageFormat,Vars), + log(String). + +log(Message) :- + get_time(A), + convert_time(A,Y,M,D,H,Min,S,_), + sformat(Stamp,'<~d/~d/~d-~d:~d:~d> ',[Y,M,D,H,Min,S]), + log_file(File), + open(File,append,Stream,[]), + write(Stream,Stamp), + write(Stream,Message), + write(Stream,'\n'), + close(Stream). + + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/mapping.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/mapping.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,16 @@ +:- module(mapping,[ + see_other_rdf/2 + , see_other/2 + ]). + +/** + * See other when Accept: application/rdf+xml + * is in the request header + */ +:- multifile see_other_rdf/2. + +/** + * See other, default behavior + */ +:- multifile see_other/2. + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/run.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/run.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,10 @@ +#!/usr/local/bin/swipl -s + +:- use_module(urispace). +:- use_module(cmn_mapping). + + + +:- + init. + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/urispace/urispace.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/urispace/urispace.pl Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,74 @@ +:- module(urispace,[init/0]). + + +:- use_module(library('http/thread_httpd')). +:- use_module(library('semweb/rdf_db')). +:- use_module(log). +:- use_module(config). +:- use_module(mapping). + +server(Port, Options) :- + http_server(reply,[ port(Port),timeout(20)| Options]). + + + +/** + * Closes the servlet + */ +reply(Request) :- + log:log(Request), + member(path('/quit'), Request), !, + format('Connection: close~n', []), + format('Content-type: text/html~n~n', []), + format('Bye Bye~n'). + + +/** + * Sends back 303 to RDF document describing the resource + */ +reply(Request) :- + member(path(Path),Request), + member(accept(AcceptHeader),Request), + format(user_error,'Accept header: ~w ',[AcceptHeader]), + %accept_rdf(AcceptHeader), + concat_atom(PatternX,'/',Path), + delete(PatternX,'',Pattern), + mapping:see_other_rdf(requested_pattern(Pattern),redirect_pattern(RedirectP)), + !, + concat_atom(RedirectP,Redirect), + log:log('Sending a 303 towards ~w',Redirect), + throw(http_reply(see_other(Redirect),[])). + +accept_rdf('application/rdf+xml'). +%accept_rdf('text/xml'). +accept_rdf(AcceptHeader) :- + sub_atom(AcceptHeader,_,_,_,'application/rdf+xml'). +%accept_rdf(AcceptHeader) :- +% sub_atom(AcceptHeader,_,_,_,'text/xml'). + +/** + * Sends back towards the default representation of the resource + * (usually html) + */ +reply(Request) :- + member(path(Path),Request), + concat_atom(PatternX,'/',Path), + delete(PatternX,'',Pattern), + mapping:see_other(requested_pattern(Pattern),redirect_pattern(RedirectP)), + !, + concat_atom(RedirectP,Redirect), + log:log('Sending a 303 towards ~w',Redirect), + throw(http_reply(see_other(Redirect),[])). + +init :- + config:port(P), + server(P,[]), + nl, + writeln(' - Server launched'),nl. + +:- + nl,writeln('----------------'),nl, + writeln(' - Launch the server by running ?-init.'), + writeln(' - To change the port, change config.pl'),nl,writeln('----------------'),nl. + + diff -r cfe3270a6cb7 -r 9e70cd92f14e cmn/users.db --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmn/users.db Wed Nov 08 11:56:02 2017 +0000 @@ -0,0 +1,1 @@ +assert(user(anonymous, [realname('Anonymous'), allow([read(_,_)])])). diff -r cfe3270a6cb7 -r 9e70cd92f14e jamendo/static-rdf-server.pl --- a/jamendo/static-rdf-server.pl Tue Nov 07 16:06:54 2017 +0000 +++ b/jamendo/static-rdf-server.pl Wed Nov 08 11:56:02 2017 +0000 @@ -3,12 +3,14 @@ :- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')). :- use_module(library(http/http_unix_daemon)). +:- use_module(library(http/http_log)). :- use_module(cliopatria(cliopatria)). :- rdf_db:rdf_load('static-rdf/jamendo.rdf'). :- rdf_db:rdf_load('static-rdf/mbz_jamendo.rdf'). :- set_setting_default(http:prefix, '/jamendo/cliopatria'). +:- set_setting_default(http:logfile, 'server.log'). :- http_daemon([port(2105), fork(false)]). diff -r cfe3270a6cb7 -r 9e70cd92f14e magnatune/static-rdf-server.pl --- a/magnatune/static-rdf-server.pl Tue Nov 07 16:06:54 2017 +0000 +++ b/magnatune/static-rdf-server.pl Wed Nov 08 11:56:02 2017 +0000 @@ -3,11 +3,13 @@ :- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')). :- use_module(library(http/http_unix_daemon)). +:- use_module(library(http/http_log)). :- use_module(cliopatria(cliopatria)). :- rdf_db:rdf_load('static-rdf/rdf_dump.rdf'). :- set_setting_default(http:prefix, '/magnatune/cliopatria'). +:- set_setting_default(http:logfile, 'server.log'). :- http_daemon([port(2020), fork(false)]). diff -r cfe3270a6cb7 -r 9e70cd92f14e peel/static-rdf-server.pl --- a/peel/static-rdf-server.pl Tue Nov 07 16:06:54 2017 +0000 +++ b/peel/static-rdf-server.pl Wed Nov 08 11:56:02 2017 +0000 @@ -3,6 +3,7 @@ :- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')). :- use_module(library(http/http_unix_daemon)). +:- use_module(library(http/http_log)). :- use_module(cliopatria(cliopatria)). :- rdf_db:rdf_load('static-rdf/peel.rdf'). @@ -10,6 +11,7 @@ :- rdf_db:rdf_load('static-rdf/dbpedia-johnpeel/dbpedia-johnpeel-works.rdf'). :- set_setting_default(http:prefix, '/bbc/peel/cliopatria'). +:- set_setting_default(http:logfile, 'server.log'). :- http_daemon([port(3030), fork(false)]).