REC-rdfa-syntax-20081014 211 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-REC.css" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>RDFa in XHTML: Syntax and Processing</title>
<style type="text/css">
code           { font-family: monospace; }

span.hilite { color: red; /* font-weight: bold */ }

div.constraint,
div.issue,
div.note,
div.notice     { margin-left: 2em; }

dt.label       { display: run-in; }

li p           { margin-top: 0.3em;
                 margin-bottom: 0.3em; }

div.texample pre,
div.example pre { margin-left: 1em;
                       margin-top: 0em; margin-bottom: 0em}
div.texample,
div.example { background-color: #d5dee3;
                   border-top-width: 4px;
                   border-top-style: double;
                   border-top-color: #d3d3d3;
                   border-bottom-width: 4px;
                   border-bottom-style: double;
                   border-bottom-color: #d3d3d3;
                   padding: 4px; margin: 0em }
div.texample { background-color: #F0E68C; }
div.explanation { background-color: #ADD8E6;
                   width: 60%;
                   margin: 12px; padding: 8px; }
div.explanation li { margin-top: 8px; }
div.explanation dd { margin: 4px; }

                   
.xmlverb-default          { color: #333333; background-color: #ffffff; font-family: monospace }
.xmlverb-element-name     { color: #990000 }
.xmlverb-element-nsprefix { color: #666600 }
.xmlverb-attr-name        { color: #660000 }
.xmlverb-attr-content     { color: #000099; font-weight: bold }
.xmlverb-ns-name          { color: #666600 }
.xmlverb-ns-uri           { color: #330099 }
.xmlverb-text             { color: #000000; font-weight: bold }
.xmlverb-comment          { color: #006600; font-style: italic }
.xmlverb-pi-name          { color: #006600; font-style: italic }
.xmlverb-pi-content       { color: #006666; font-style: italic }
p.issueTitle {
    font-size: 150% ;
}
div.issue {
    background-color: #cfc ;
    border: none ;
    margin-right: 5% ;
}
</style>

<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-REC.css" />
</head>
<body>
<div class="head"><a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72" /></a> 

<h1><a id="title" name="title"> RDFa in XHTML: Syntax and Processing</a></h1>

<h2><a id="subtitle" name="subtitle"> A collection of attributes and processing rules for extending XHTML to support RDF</a></h2>

<h2><a id="w3c-doctype" name="w3c-doctype"> W3C Recommendation 14 October 2008</a></h2>

<dl>
<dt>This version:</dt>

<dd><a href="http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014">http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014</a></dd>

<dt>Latest version:</dt>

<dd><a href="http://www.w3.org/TR/rdfa-syntax">http://www.w3.org/TR/rdfa-syntax</a></dd>

<dt>Previous version:</dt>

<dd><a href='http://www.w3.org/TR/2008/PR-rdfa-syntax-20080904'>http://www.w3.org/TR/2008/PR-rdfa-syntax-20080904</a></dd>

<dt>Diff from previous version:</dt>

<dd><a href="rdfa-syntax-diff.html">rdfa-syntax-diff.html</a></dd>

<!--  <dt>Previous Editor's Draft:</dt>
<dd><a id='previousDraft' href='http://www.w3.org/MarkUp/2008/ED-rdfa-syntax-20080814'>http://www.w3.org/MarkUp/2008/ED-rdfa-syntax-20080814</a></dd>

  <dt>Diff from previous Editor's Draft:</dt>
    <dd><a href="rdfa-syntax-diff.html">rdfa-syntax-diff.html</a></dd>
    -->
<dt>Editors:</dt>

<dd>Ben Adida, Creative Commons <a href="mailto:ben@adida.net"> ben@adida.net</a></dd>

<dd>Mark Birbeck, <a href="http://webBackplane.com/">webBackplane</a> <a href="mailto:mark.birbeck@webBackplane.com">mark.birbeck@webBackplane.com</a></dd>

<dd>Shane McCarron, <a href="http://www.aptest.com">Applied Testing and Technology, <abbr title="Incorporated">Inc.</abbr></a> <a href="mailto:shane@aptest.com">shane@aptest.com</a></dd>

<dd>Steven Pemberton, CWI</dd>
</dl>

<p>Please refer to the <a href="http://www.w3.org/MarkUp/2008/REC-rdfa-syntax-20081014-errata"><strong>errata</strong></a> for this document, which may include some normative corrections.</p>

<p>This document is also available in these non-normative formats: <a href="rdfa-syntax.ps">PostScript version</a>, <a href="rdfa-syntax.pdf">PDF version</a>, <a href="rdfa-syntax.zip">ZIP
archive</a>, and <a href="rdfa-syntax.tgz">Gzip'd TAR archive</a>.</p>

<p>The English version of this specification is the only normative version. Non-normative <a href="http://www.w3.org/Consortium/Translation/">translations</a> may also be available.</p>

<p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &#169; 2007-2008 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">
W3C</acronym></a><sup>&#174;</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title= 
"European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href= 
"http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href= 
"http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p>
</div>

<hr />
<h2><a id="abstract" name="abstract"> Abstract</a></h2>

<p>The current Web is primarily made up of an enormous number of documents that have been created using HTML. These documents contain significant amounts of structured data, which is largely
unavailable to tools and applications. When publishers can express this data more completely, and when tools can read it, a new world of user functionality becomes available, letting users transfer
structured data between applications and web sites, and allowing browsing applications to improve the user experience: an event on a web page can be directly imported into a user's desktop calendar;
a license on a document can be detected so that users can be informed of their rights automatically; a photo's creator, camera setting information, resolution, location and topic can be published as
easily as the original photo itself, enabling structured search and sharing.</p>

<p>RDFa is a specification for attributes to express structured data in any markup language. This document specifies how to use RDFa with XHTML. The rendered, hypertext data of XHTML is reused by the
RDFa markup, so that publishers don't need to repeat significant data in the document content. The underlying abstract representation is RDF [<a class="nref" href="#ref_RDF-PRIMER">RDF-PRIMER</a>],
which lets publishers build their own vocabulary, extend others, and evolve their vocabulary with maximal interoperability over time. The expressed structure is closely tied to the data, so that
rendered data can be copied and pasted along with its relevant structure.</p>

<p>The rules for interpreting the data are generic, so that there is no need for different rules for different formats; this allows authors and publishers of data to define their own formats without
having to update software, register formats via a central authority, or worry that two formats may interfere with each other.</p>

<p>RDFa shares some use cases with microformats [<a class="nref" href="#ref_MICROFORMATS">MICROFORMATS</a>]. Whereas microformats specify both a syntax for embedding structured data into HTML
documents and a vocabulary of specific terms for each microformat, RDFa specifies only a syntax and relies on independent specification of terms (often called vocabularies or taxonomies) by others.
RDFa allows terms from multiple independently-developed vocabularies to be freely intermixed and is designed such that the language can be parsed without knowledge of the specific term vocabulary
being used.</p>

<p>This document is a detailed syntax specification for RDFa, aimed at:</p>

<ul>
<li>those looking to create an RDFa parser, and who therefore need a detailed description of the parsing rules;</li>

<li>those looking to recommend the use of RDFa within their organisation, and who would like to create some guidelines for their users;</li>

<li>anyone familiar with RDF, and who wants to understand more about what is happening 'under the hood', when an RDFa parser runs.</li>
</ul>

<p> For those looking for an introduction to the use of RDFa and some real-world examples, please consult the <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa Primer</a>.</p>

<h3><a id="sec_" name="sec_"> How to Read this Document</a></h3>

<p>If you are already familiar with RDFa, and you want to examine the processing rules &#8212; perhaps to create a parser &#8212; then you'll find the <a href="#s_model">Processing Model</a> section
of most interest. It contains an overview of each of the processing steps, followed by more detailed sections, one for each rule.</p>

<p>If you are not familiar with RDFa, but you <em>are</em> familiar with RDF, then you might find reading the <a href="#s_Syntax_overview">Syntax Overview</a> useful, before looking at the <a href= 
"#s_model">Processing Model</a> since it gives a range of examples of XHTML mark-up that use RDFa. Seeing some examples first should make reading the processing rules easier.</p>

<p>If you are not familiar with RDF, then you might want to take a look at the section on <a href="#s_rdfterminology">RDF Terminology</a> before trying to do too much with RDFa. Although RDFa is
designed to be easy to author&#8212;and authors don't need to understand RDF to use it&#8212;anyone writing applications that <em>consume</em> RDFa will need to understand RDF. There is a lot of
material about RDF on the web, and a growing range of tools that support RDFa, so all we try to do in this document is provide enough background on RDF to make the goals of RDFa clearer.</p>

<p>And finally, if you are not familiar with either RDFa <em>or</em> RDF, and simply want to add RDFa to your documents, then you may find the RDFa Primer [<a class="nref" href=
"#ref_RDFaPRIMER">RDFaPRIMER</a>] to be a better introduction.</p>

<h2><a id="status" name="status"> Status of this Document</a></h2>

<p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of
this technical report can be found in the <a href="http://www.w3.org/TR/">W3C technical reports index</a> at http://www.w3.org/TR/.</em></p>

<p>This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. It is a stable
document and may be used as reference material or cited from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread
deployment. This enhances the functionality and interoperability of the Web.</p>

<p>Members of the public are invited to send comments on this Recommendation to <a href="mailto:public-rdf-in-xhtml-tf@w3.org">public-rdf-in-xhtml-tf@w3.org</a> (with <a href= 
"http://lists.w3.org/Archives/Public/public-rdf-in-xhtml-tf/">public archive</a>).</p>

<p>A <a href="http://rdfa.digitalbazaar.com/rdfa-test-harness/">sample test harness</a> is available. This set of tests is not intended to be exhaustive. Users may find the tests to be useful
examples of RDFa usage. An <a href="http://www.w3.org/2006/07/SWD/RDFa/implementation-report/">implementation report</a> lists several implementations of this specification tested during the
Candidate Recommendation period. A community-maintained <a href="http://rdfa.info/rdfa-implementations/">Wiki page</a> includes subsequent updates.</p>

<p>This document has been produced jointly by the <a href="http://www.w3.org/2006/07/SWD/">Semantic Web Deployment Working Group</a> and the <a href="http://www.w3.org/MarkUp/">XHTML2 Working
Group</a> as part of the <a href="http://www.w3.org/2001/sw/">Semantic Web Activity</a> and the <a href="http://www.w3.org/MarkUp/Activity">HTML Activity</a>. It contains small editorial changes
arising from comments received during the Proposed Recommendation review; see the diff-marked version for details.</p>

<p>This document was produced by groups operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>. W3C maintains a <a rel="disclosure"
href="http://www.w3.org/2004/01/pp-impl/32107/status">public list of any patent disclosures</a> made in connection with the deliverables of the XHTML 2 Working Group; and also maintains a <a rel= 
"disclosure" href="http://www.w3.org/2004/01/pp-impl/39408/status">public list of any patent disclosures</a> made in connection with the deliverables of the Semantic Web Deployment Working Group;
those pages also include instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href= 
"http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href= 
"http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>.</p>

<h1><a id="contents" name="contents"> Table of Contents</a></h1>

<div class="toc">
<ul class='toc'>
<li class='tocline'>1. <a href="#s_motivation" class="tocxref">Motivation</a></li>

<li class='tocline'>2. <a href="#s_Syntax_overview" class="tocxref">Syntax Overview</a> 

<ul class="toc">
<li class='tocline'>2.1. <a href="#rdfa-attributes" class="tocxref">The RDFa Attributes</a></li>

<li class='tocline'>2.2. <a href="#sec_2.2." class="tocxref">Examples</a></li>
</ul>
</li>

<li class='tocline'>3. <a href="#s_rdfterminology" class="tocxref">RDF Terminology</a> 

<ul class="toc">
<li class='tocline'>3.1. <a href="#sec_3.1." class="tocxref">Statements</a></li>

<li class='tocline'>3.2. <a href="#sec_3.2." class="tocxref">Triples</a></li>

<li class='tocline'>3.3. <a href="#T_URI_reference" class="tocxref">URI references</a></li>

<li class='tocline'>3.4. <a href="#sec_3.4." class="tocxref">Plain literals</a></li>

<li class='tocline'>3.5. <a href="#sec_3.5." class="tocxref">Typed literals</a></li>

<li class='tocline'>3.6. <a href="#sec_3.6." class="tocxref">Turtle</a></li>

<li class='tocline'>3.7. <a href="#sec_3.7." class="tocxref">Graphs</a></li>

<li class='tocline'>3.8. <a href="#sec_3.8." class="tocxref">Compact URIs</a></li>

<li class='tocline'>3.9. <a href="#sec_3.9." class="tocxref">XHTML Fragments and RDFa</a></li>

<li class='tocline'>3.10. <a href="#sec_3.10." class="tocxref">A description of RDFa in RDF terms</a></li>
</ul>
</li>

<li class='tocline'>4. <a href="#s_conformance" class="tocxref">Conformance Requirements</a> 

<ul class="toc">
<li class='tocline'>4.1. <a href="#docconf" class="tocxref">Document Conformance</a></li>

<li class='tocline'>4.2. <a href="#uaconf" class="tocxref">User Agent Conformance</a></li>

<li class='tocline'>4.3. <a href="#processorconf" class="tocxref">RDFa Processor Conformance</a></li>
</ul>
</li>

<li class='tocline'>5. <a href="#s_model" class="tocxref">Processing Model</a> 

<ul class="toc">
<li class='tocline'>5.1. <a href="#sec_5.1." class="tocxref">Overview</a></li>

<li class='tocline'>5.2. <a href="#sec_5.2." class="tocxref">Evaluation Context</a></li>

<li class='tocline'>5.3. <a href="#sec_5.3." class="tocxref">Chaining</a></li>

<li class='tocline'>5.4. <a href="#s_curieprocessing" class="tocxref">CURIE and URI Processing</a> 

<ul class="toc">
<li class='tocline'>5.4.1. <a href="#sec_5.4.1." class="tocxref">Scoping of Prefix Mappings</a></li>

<li class='tocline'>5.4.2. <a href="#s_convertingcurietouri" class="tocxref">Converting a CURIE to a URI</a></li>

<li class='tocline'>5.4.3. <a href="#sec_5.4.3." class="tocxref">General Use of CURIEs in Attributes</a></li>

<li class='tocline'>5.4.4. <a href="#sec_5.4.4." class="tocxref">Use of CURIEs in Specific Attributes</a></li>

<li class='tocline'>5.4.5. <a href="#sec_5.4.5." class="tocxref">Referencing Blank Nodes</a></li>
</ul>
</li>

<li class='tocline'>5.5. <a href="#sec_5.5." class="tocxref">Sequence</a></li>
</ul>
</li>

<li class='tocline'>6. <a href="#s_rdfaindetail" class="tocxref">RDFa Processing in detail</a> 

<ul class="toc">
<li class='tocline'>6.1. <a href="#sec_6.1." class="tocxref">Changing the evaluation context</a> 

<ul class="toc">
<li class='tocline'>6.1.1. <a href="#sec_6.1.1." class="tocxref">Setting the current subject</a></li>
</ul>
</li>

<li class='tocline'>6.2. <a href="#s_Completing_Incomplete_Triples" class="tocxref">Completing 'incomplete triples'</a></li>

<li class='tocline'>6.3. <a href="#sec_6.3." class="tocxref">Object resolution</a> 

<ul class="toc">
<li class='tocline'>6.3.1. <a href="#sec_6.3.1." class="tocxref">Literal object resolution</a></li>

<li class='tocline'>6.3.2. <a href="#sec_6.3.2." class="tocxref">URI object resolution</a></li>
</ul>
</li>
</ul>
</li>

<li class='tocline'>7. <a href="#s_curies" class="tocxref">CURIE Syntax Definition</a></li>

<li class='tocline'>8. <a href="#s_xhtmlrdfa" class="tocxref">XHTML+RDFa Definition</a></li>

<li class='tocline'>9. <a href="#s_metaAttributes" class="tocxref">Metainformation Attributes Module</a> 

<ul class="toc">
<li class='tocline'>9.1. <a href="#sec_9.1." class="tocxref">Datatypes</a></li>

<li class='tocline'>9.2. <a href="#col_Metainformation" class="tocxref">Metainformation Attributes Collection</a></li>

<li class='tocline'>9.3. <a href="#relValues" class="tocxref">@rel/@rev attribute values</a></li>
</ul>
</li>

<li class='tocline'>A. <a href="#a_xhtmlrdfa_dtd" class="tocxref">XHTML+RDFa DTD</a> 

<ul class="toc">
<li class='tocline'>A.1. <a href="#a_DTD_xhtml_metaAttributes_module" class="tocxref">XHTML Metainformation Attributes Module</a></li>

<li class='tocline'>A.2. <a href="#a_DTD_content_model" class="tocxref">XHTML+RDFa Content Model Module</a></li>

<li class='tocline'>A.3. <a href="#a_DTD_driver" class="tocxref">XHTML+RDFa Driver Module</a></li>

<li class='tocline'>A.4. <a href="#a_xhtml11_catalog" class="tocxref">SGML Open Catalog Entry for XHTML+RDFa</a></li>
</ul>
</li>

<li class='tocline'>B. <a href="#s_datatypes" class="tocxref">CURIE Datatypes</a> 

<ul class="toc">
<li class='tocline'>B.1. <a href="#sec_B.1." class="tocxref">XML Schema Definition</a></li>

<li class='tocline'>B.2. <a href="#sec_B.2." class="tocxref">XML DTD Definition</a></li>
</ul>
</li>

<li class='tocline'>C. <a href="#a_deployment" class="tocxref">Deployment Advice</a></li>

<li class='tocline'>D. <a href="#a_references" class="tocxref">References</a> 

<ul class="toc">
<li class='tocline'>D.1. <a href="#sec_D.1." class="tocxref">Related Specifications</a></li>

<li class='tocline'>D.2. <a href="#sec_D.2." class="tocxref">Other References</a></li>
</ul>
</li>

<li class='tocline'>E. <a href="#a_history" class="tocxref">Change History</a></li>

<li class='tocline'>F. <a href="#a_acks" class="tocxref">Acknowledgments</a></li>
</ul>
</div>

<!--OddPage-->
<h1><a id="s_motivation" name="s_motivation">1. Motivation</a></h1>

<p><em>This section is informative.</em></p>

<p>RDF/XML [<a class="nref" href="#ref_RDF-SYNTAX">RDF-SYNTAX</a>] provides sufficient flexibility to represent all of the abstract concepts in RDF [<a class="nref" href=
"#ref_RDF-CONCEPTS">RDF-CONCEPTS</a>]. However, it presents a number of challenges; first it is difficult or impossible to validate documents that contain RDF/XML using XML Schemas or DTDs, which
therefore makes it difficult to import RDF/XML into other markup languages. Whilst newer schema languages such as RELAX NG [<a class="nref" href="#ref_RELAXNG">RELAXNG</a>] do provide a way to
validate documents that contain arbitrary RDF/XML, it will be a while before they gain wide support.</p>

<p>Second, even if one could add RDF/XML directly into an XML dialect like XHTML, there would be significant data duplication between the rendered data and the RDF/XML structured data. It would be
far better to add RDF to a document without repeating the document's existing data. For example, an XHTML document that explicitly renders its author's name in the text&#8212;perhaps as a byline on a
news site&#8212;should not need to repeat this name for the RDF expression of the same concept: it should be possible to supplement the existing markup in such a way that it can also be interpreted
as RDF.</p>

<p>Another reason for aligning the rendered data with the structured data is that it is highly beneficial to express the web data's structure 'in context'; as users often want to transfer structured
data from one application to another, sometimes to or from a non-web-based application, the user experience can be enhanced. For example, information about specific rendered data could be presented
to the user via 'right-clicks' on an item of interest.</p>

<p>In the past, many attributes were 'hard-wired' directly into the markup language to represent specific concepts. For example, in XHTML 1.1 [<a class="nref" href="#ref_XHTML11">XHTML11</a>] and
HTML [<a class="nref" href="#ref_HTML4">HTML4</a>] there is <span class="aref">@cite</span>; the attribute allows an author to add information to a document which is used to indicate the origin of a
quote.</p>

<p>However, these 'hard-wired' attributes make it difficult to define a generic process for extracting metadata from any document since a parser would need to know about each of the special
attributes. One motivation for RDFa has been to devise a means by which documents can be augmented with metadata in a general rather than hard-wired manner. This has been achieved by creating a fixed
set of attributes and parsing rules, but allowing those attributes to contain properties from any of a number of the growing range of available RDF vocabularies. The <em>values</em> of those
properties are in most cases the information that is already in an author's XHTML document.</p>

<p>RDFa alleviates the pressure on XML format authors to anticipate all the structural requirements users of their format might have, by outlining a new syntax for RDF that relies only on XML
attributes. This specification deals specifically with the use of RDFa in XHTML, and defines an RDF mapping for a number of XHTML attributes, but RDFa can be easily imported into other XML-based
markup languages.</p>

<!--OddPage-->
<h1><a id="s_Syntax_overview" name="s_Syntax_overview">2. Syntax Overview</a></h1>

<p><em>This section is informative.</em></p>

<p>The following examples are intended to help readers who are not familiar with RDFa to quickly get a sense of how it works. For a more thorough introduction, please read the RDFa Primer [<a class= 
"nref" href="#ref_RDFaPRIMER">RDFaPRIMER</a>].</p>

<p>For brevity, in the following examples and throughout this document, assume that the following vocabulary prefixes have been defined:</p>

<table>
<tr>
<td rowspan="1" colspan="1">biblio:</td>
<td rowspan="1" colspan="1">http://example.org/biblio/0.1</td>
</tr>

<tr>
<td rowspan="1" colspan="1">cc:</td>
<td rowspan="1" colspan="1">http://creativecommons.org/ns#</td>
</tr>

<tr>
<td rowspan="1" colspan="1">dbp:</td>
<td rowspan="1" colspan="1">http://dbpedia.org/property/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">dbr:</td>
<td rowspan="1" colspan="1">http://dbpedia.org/resource/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">dc:</td>
<td rowspan="1" colspan="1">http://purl.org/dc/elements/1.1/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">ex:</td>
<td rowspan="1" colspan="1">http://example.org/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">foaf:</td>
<td rowspan="1" colspan="1">http://xmlns.com/foaf/0.1/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">rdf:</td>
<td rowspan="1" colspan="1">http://www.w3.org/1999/02/22-rdf-syntax-ns#</td>
</tr>

<tr>
<td rowspan="1" colspan="1">rdfs:</td>
<td rowspan="1" colspan="1">http://www.w3.org/2000/01/rdf-schema#</td>
</tr>

<tr>
<td rowspan="1" colspan="1">taxo:</td>
<td rowspan="1" colspan="1">http://purl.org/rss/1.0/modules/taxonomy/</td>
</tr>

<tr>
<td rowspan="1" colspan="1">xhv:</td>
<td rowspan="1" colspan="1">http://www.w3.org/1999/xhtml/vocab#</td>
</tr>

<tr>
<td rowspan="1" colspan="1">xsd:</td>
<td rowspan="1" colspan="1">http://www.w3.org/2001/XMLSchema#</td>
</tr>
</table>

<h2><a id="rdfa-attributes" name="rdfa-attributes">2.1. The RDFa Attributes</a></h2>

<p>RDFa in XHTML makes use of a number of XHTML attributes, as well as providing a few new ones. Attributes that already exist in XHTML will have the same meaning as in XHTML, although their syntax
may be slightly modified. For example, in XHTML, <span class="aref">@rel</span> already defines the relationship between one document and another. However, in XHTML there is no clear way to add new
values; RDFa sets out to explicitly solve this problem, and does so by allowing URIs as values. It also introduces the idea of 'compact URIs'&#8212;referred to as CURIEs in this document&#8212;which
allow a full URI value to be expressed succinctly.</p>

<p>The XHTML attributes that are relevant are:</p>

<dl>
<dt><span class="aref">@rel</span></dt>

<dd>a whitespace separated list of <span class="datatype"><a href="#dt_curie">CURIE</a></span>s, used for expressing relationships between two resources ('predicates' in RDF terminology);</dd>

<dt><span class="aref">@rev</span></dt>

<dd>a whitespace separated list of <span class="datatype"><a href="#dt_curie">CURIE</a></span>s, used for expressing reverse relationships between two resources (also 'predicates');</dd>

<dt><span class="aref">@content</span></dt>

<dd>a string, for supplying machine-readable content for a literal (a 'plain literal object', in RDF terminology);</dd>

<dt><span class="aref">@href</span></dt>

<dd>a <span class="datatype"><a href="http://www.w3.org/TR/xhtml-modularization/abstraction.html#dt_URI">URI</a></span> for expressing the partner resource of a relationship (a 'resource object', in
RDF terminology);</dd>

<dt><span class="aref">@src</span></dt>

<dd>a <span class="datatype"><a href="http://www.w3.org/TR/xhtml-modularization/abstraction.html#dt_URI">URI</a></span> for expressing the partner resource of a relationship when the resource is
embedded (also a 'resource object').</dd>
</dl>

<p>The new&#8212;RDFa-specific&#8212;attributes are:</p>

<dl>
<dt><span class="aref">@about</span></dt>

<dd>a <span class="datatype"><a href="#dt_uriorsafecurie">URIorSafeCURIE</a></span>, used for stating what the data is about (a 'subject' in RDF terminology);</dd>

<dt><span class="aref">@property</span></dt>

<dd>a whitespace separated list of <span class="datatype"><a href="#dt_curie">CURIE</a></span>s, used for expressing relationships between a subject and some literal text (also a 'predicate');</dd>

<dt><span class="aref">@resource</span></dt>

<dd>a <span class="datatype"><a href="#dt_uriorsafecurie">URIorSafeCURIE</a></span> for expressing the partner resource of a relationship that is not intended to be 'clickable' (also an
'object');</dd>

<dt><span class="aref">@datatype</span></dt>

<dd>a <span class="datatype"><a href="#dt_curie">CURIE</a></span> representing a datatype, to express the datatype of a literal;</dd>

<dt><span class="aref">@typeof</span></dt>

<dd>a whitespace separated list of <span class="datatype"><a href="#dt_curie">CURIE</a></span>s that indicate the RDF type(s) to associate with a subject.</dd>
</dl>

<p><em>For a normative definition of these attributes see the <a href="#s_metaAttributes">XHTML Metainformation Attributes Module</a>.</em></p>

<h2><a id="sec_2.2." name="sec_2.2.">2.2. Examples</a></h2>

<p>As an XHTML author you will already be familiar with using <code>meta</code> and <code>link</code> to add additional information to your documents:</p>

<div class="example">
<pre>
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
    &lt;title&gt;Page 7&lt;/title&gt;
    <span class='hilite'>&lt;meta name="author" content="Mark Birbeck" /&gt;</span>
    <span class='hilite'>&lt;link rel="prev" href="page6.html" /&gt;</span>
    <span class='hilite'>&lt;link rel="next" href="page8.html" /&gt;</span>
  &lt;/head&gt;
  &lt;body&gt;...&lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>RDFa makes use of this concept, enhancing it with the ability to make use of other vocabularies by using compact URIs:</p>

<div class="example">
<pre>
&lt;html
  xmlns="http://www.w3.org/1999/xhtml"
  <span class='hilite'>xmlns:foaf="http://xmlns.com/foaf/0.1/"</span>
  <span class='hilite'>xmlns:dc="http://purl.org/dc/elements/1.1/"</span>
  &gt;
  &lt;head&gt;
    &lt;title&gt;My home-page&lt;/title&gt;
    &lt;meta property="<span class='hilite'>dc:creator</span>" content="Mark Birbeck" /&gt;
    &lt;link rel="<span class='hilite'>foaf:topic</span>" href="http://www.formsPlayer.com/#us" /&gt;
  &lt;/head&gt;
  &lt;body&gt;...&lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>Although not widely used, XHTML already supports the use of <span class="aref">@rel</span> and <span class="aref">@rev</span> on the <code>a</code> element. This becomes more useful in RDFa with
the addition of support for different vocabularies:</p>

<div class="example">
<pre>
This document is licensed under a 
&lt;a <span class='hilite'>xmlns:cc="http://creativecommons.org/ns#"</span>
  <span class='hilite'>rel="cc:license"</span>
  href="http://creativecommons.org/licenses/by-nc-nd/3.0/"&gt;
  Creative Commons License
&lt;/a&gt;.
</pre>
</div>

<p>Not only can URLs in the document be re-used to provide metadata, but so can inline text:</p>

<div class="example">
<pre>
&lt;html
  xmlns="http://www.w3.org/1999/xhtml"
  <span class='hilite'>xmlns:cal="http://www.w3.org/2002/12/cal/ical#"</span>
  &gt;
  &lt;head&gt;&lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;
      I'm holding
      &lt;span <span class='hilite'>property="cal:summary"</span>&gt;
        <span class='hilite'>one last summer Barbecue</span>
      &lt;/span&gt;,
      on September 16th at 4pm.
    &lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>If some displayed text is different to the actual 'value' it represents, more precise values can be added, which can optionally include datatypes:</p>

<div class="example">
<pre>
&lt;html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:cal="http://www.w3.org/2002/12/cal/ical#"
  <span class='hilite'>xmlns:xsd="http://www.w3.org/2001/XMLSchema"</span>
  &gt;
  &lt;head&gt;&lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;
      I'm holding
      &lt;span property="cal:summary"&gt;
        one last summer Barbecue
      &lt;/span&gt;,
      on
      &lt;span <span class='hilite'>property="cal:dtstart"</span> <span class='hilite'>content="2007-09-16T16:00:00-05:00"</span>
            <span class='hilite'>datatype="xsd:dateTime"</span>&gt;
        September 16th at 4pm
      &lt;/span&gt;.
    &lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>In many cases a block of mark-up will contain a number of properties that relate to the same item; it's possible with RDFa to indicate the type of that item:</p>

<div class="example">
<pre>
&lt;html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:cal="http://www.w3.org/2002/12/cal/ical#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  &gt;
  &lt;head&gt;&lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
    &lt;p <span class='hilite'>typeof="cal:Vevent"</span>&gt;
      I'm holding
      &lt;span property="cal:summary"&gt;
        one last summer Barbecue
      &lt;/span&gt;,
      on
      &lt;span property="cal:dtstart" content="2007-09-16T16:00:00-05:00" 
            datatype="xsd:dateTime"&gt;
        September 16th at 4pm
      &lt;/span&gt;.
    &lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>The metadata features available in XHTML only allow information to be expressed about the document itself. RDFa allows the document to contain metadata information about other documents and
resources:</p>

<div class="example">
<pre>
&lt;html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:biblio="http://example.org/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  &gt;
  &lt;head&gt;
    &lt;title&gt;Books by Marco Pierre White&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    I think White's book
    '&lt;span <span class='hilite'>about="urn:ISBN:0091808189"</span> <span class='hilite'>typeof="biblio:book"</span>
           <span class='hilite'>property="dc:title"</span>&gt;
      Canteen Cuisine
    &lt;/span&gt;'
    is well worth getting since although it's quite advanced stuff, he
    makes it pretty easy to follow. You might also like
    &lt;span <span class='hilite'>about="urn:ISBN:1596913614"</span> <span class='hilite'>typeof="biblio:book"</span>
          <span class='hilite'>property="dc:description"</span>&gt;
      White's autobiography
    &lt;/span&gt;.
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<!--OddPage-->
<h1><a id="s_rdfterminology" name="s_rdfterminology">3. RDF Terminology</a></h1>

<p><em>This section is informative.</em></p>

<p> The previous section gave examples of typical mark-up in order to illustrate what RDFa in XHTML looks like. But what RDFa in XHTML <em>represents</em> is RDF. In order to author RDFa in XHTML you
do not need to understand RDF, although it would certainly help. However, if you are building a system that consumes the RDF output of an RDFa in XHTML document you will almost certainly need to
understand RDF. In this section we introduce the basic concepts and terminology of RDF. For a more thorough explanation of RDF, please refer to the RDF Concepts document [<a class="nref" href= 
"#ref_RDF-CONCEPTS">RDF-CONCEPTS</a>] and the RDF Sytax Document [<a class="nref" href="#ref_RDF-SYNTAX">RDF-SYNTAX</a>].</p>

<h2><a id="sec_3.1." name="sec_3.1.">3.1. Statements</a></h2>

<p> The structured data that RDFa provides access to is a collection of <em>statements</em>. A statement is a basic unit of information that has been constructed in a specific format to make it
easier to process. In turn, by breaking large sets of information down into a collection of statements, even very complex metadata can be processed using simple rules.</p>

<p> To illustrate, suppose we have the following set of facts:</p>

<div class="example">
<pre>
Albert was born on March 14, 1879, in Germany. There is a picture of him at
the web address, http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg.
</pre>
</div>

<p>This would be quite difficult for a machine to interpret, and it is certainly not in a format that could be passed from one data application to another. However, if we convert the information to a
set of statements it begins to be more manageable. The same information could therefore be represented by the following shorter 'statements':</p>

<div class="example">
<pre>
Albert was born on March 14, 1879.
Albert was born in Germany.
Albert has a picture at
  http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg.
</pre>
</div>

<h2><a id="sec_3.2." name="sec_3.2.">3.2. Triples</a></h2>

<p> To make this information machine-processable, RDF defines a structure for these statements. A statement is formally called a [<span class="tdef" id="T_triple"><em>triple</em></span>], meaning
that it is made up of three components. The first is the <em>subject</em> of the triple, and is what we are making our statements <em>about</em>. In all of these examples the subject is 'Albert'.</p>

<p> The second part of a triple is the property of the subject that we want to define. In the examples here, the properties would be 'was born on', 'was born in', and 'has a picture at'. These are
more usually called <em>predicates</em> in RDF.</p>

<p> The final part of a triple is called the <em>object</em>. In the examples here the three objects have the values 'March 14, 1879', 'Germany', and
'http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg'.</p>

<h2><a id="T_URI_reference" name="T_URI_reference">3.3. URI references</a></h2>

<p> Breaking complex information into manageable units helps us be specific about our data, but there is still some ambiguity. For example, which 'Albert' are we talking about? If another system has
more facts about 'Albert', how could we know whether they are about the same person, and so add them to the list of things we know about that person? If we wanted to find people born in Germany, how
could we know that the predicate 'was born in' has the same purpose as the predicate 'birthplace' that might exist in some other system? RDF solves this problem by replacing our vague terms with <em>
URI references</em>.</p>

<p> URIs are most commonly used to identify web pages, but RDF makes use of them as a way to provide unique identifiers for concepts. For example, we could identify the subject of all of our
statements (the first part of each triple) by using the DBPedia [<a href="http://dbpedia.org">http://dbpedia.org</a>] URI for Albert Einstein, instead of the ambiguous string 'Albert':</p>

<div class="texample">
<pre>
<span class='hilite'>&lt;http://dbpedia.org/resource/Albert_Einstein&gt;</span>
   has the name 
   Albert Einstein.
<span class='hilite'>&lt;http://dbpedia.org/resource/Albert_Einstein&gt;</span>
   was born on 
   March 14, 1879.
<span class='hilite'>&lt;http://dbpedia.org/resource/Albert_Einstein&gt;</span>
   was born in 
   Germany.
<span class='hilite'>&lt;http://dbpedia.org/resource/Albert_Einstein&gt;</span>
   has a picture at
   http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg.
</pre>
</div>

<p> URI references are also used to uniquely identify the objects in metadata statements (the third part of each triple). The picture of Einstein is already a URI, but we could also use a URI to
uniquely identify the country Germany. At the same time we'll indicate that the name and date of birth really are literals (and not URIs), by putting quotes around them:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; 
   has the name 
   <span class='hilite'>"</span>Albert Einstein<span class='hilite'>"</span>.
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; 
   was born on 
   <span class='hilite'>"</span>March 14, 1879<span class='hilite'>"</span>.
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; 
   was born in 
   <span class='hilite'>&lt;http://dbpedia.org/resource/Germany&gt;</span>.
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; 
   has a picture at
   <span class='hilite'>&lt;</span>http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg<span class='hilite'>&gt;</span>.
</pre>
</div>

<p> URI references are also used to ensure that predicates are unambiguous; now we can be sure that 'birthplace', 'place of birth', 'Lieu de naissance' and so on, all mean the same thing:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>&lt;http://xmlns.com/foaf/0.1/name&gt;</span>
  "Albert Einstein".
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>&lt;http://dbpedia.org/property/dateOfBirth&gt;</span>
  "March 14, 1879".
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>&lt;http://dbpedia.org/property/birthPlace&gt;</span>
  &lt;http://dbpedia.org/resource/Germany&gt;.
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>&lt;http://xmlns.com/foaf/0.1/depiction&gt;</span>
  &lt;http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg&gt;.
</pre>
</div>

<h2><a id="sec_3.4." name="sec_3.4.">3.4. Plain literals</a></h2>

<p> Although URI resources are always used for subjects and predicates, the object part of a triple can be either a URI or a [<span class="tdef" id="T_literal"><em>literal</em></span>]. In the
example triples, Einstein's name is represented by a [<span class="tdef" id="T_plain_literal"><em>plain literal</em></span>], which means that it is a basic string with no type or language
information:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  &lt;http://xmlns.com/foaf/0.1/name&gt; <span class='hilite'>"Albert Einstein"</span>.
</pre>
</div>

<h2><a id="sec_3.5." name="sec_3.5.">3.5. Typed literals</a></h2>

<p> Some literals, such as dates and numbers, have very specific meanings, so RDF provides a mechanism for indicating the type of a literal. A [<span class="tdef" id="T_typed_literal"><em>typed
literal</em></span>] is indicated by attaching a URI to the end of a [<a href="#T_plain_literal" class="tref">plain literal</a>], and this URI indicates the literal's datatype. This URI is usually
based on datatypes defined in the XML Schema Datatypes specification [<a class="nref" href="#ref_XMLSCHEMA">XMLSCHEMA</a>]. The following syntax would be used to unambiguously express Einstein's date
of birth as a literal of type <code>http://www.w3.org/2001/XMLSchema#date</code>:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  &lt;http://dbpedia.org/property/dateOfBirth&gt; "1879-03-14"<span class='hilite'>^^&lt;http://www.w3.org/2001/XMLSchema#date&gt;</span>.
</pre>
</div>

<h2><a id="sec_3.6." name="sec_3.6.">3.6. Turtle</a></h2>

<p> RDF itself does not have one set way to express triples, since the key ideas of RDF are the triple and the use of URIs, and <em>not</em> any particular syntax. However, there are a number of
mechanisms for expressing triples, such as RDF/XML, Turtle [<a class="nref" href="#ref_TURTLE">TURTLE</a>], and of course RDFa. Many discussions of RDF make use of the <em>Turtle</em> syntax to
explain their ideas, since it is quite compact. The examples we have just seen are already using this syntax, and we'll continue to use it throughout this document when we need to talk about the RDF
that could be generated from some RDFa. Turtle allows long URIs to be abbreviated by using a URI mapping, which can be used to express a compact URI as follows:</p>

<div class="texample">
<pre>
@prefix dbp: &lt;http://dbpedia.org/property/&gt; .
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>foaf:name</span> "Albert Einstein" .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  <span class='hilite'>dbp:birthPlace</span> &lt;http://dbpedia.org/resource/Germany&gt; .
</pre>
</div>

<p>Here 'dbp:' has been mapped to the URI for DBPedia and 'foaf:' has been mapped to the URI for the 'Friend of a Friend' taxonomy.</p>

<p>Any URI in Turtle could be abbreviated in this way. This means that we could also have used the same technique to abbreviate the identifier for Einstein, as well as the datatype indicator:</p>

<div class="texample">
<pre>
@prefix dbp: &lt;http://dbpedia.org/property/&gt; .
<span class='hilite'>@prefix dbr: &lt;http://dbpedia.org/resource/&gt; .</span>
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
<span class='hilite'>@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .</span>
<span class='hilite'>dbr:Albert_Einstein</span> dbp:dateOfBirth "1879-03-14"^^<span class='hilite'>xsd:date</span> .
<span class='hilite'>dbr:Albert_Einstein</span>
  foaf:depiction &lt;http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg&gt; .
</pre>
</div>

<p> When writing examples, you will often see the following URI in the Turtle representation:</p>

<div class="texample">
<pre>
&lt;&gt;
</pre>
</div>

<p> This indicates the 'current document', i.e., the document being processed. In reality there would always be a full URI based on the document's location, but this abbreviation serves to make
examples more compact. Note in particular that the whole technique of abbreviation is merely a way to make examples more compact, and the actual triples generated would always use the full URIs.</p>

<h2><a id="sec_3.7." name="sec_3.7.">3.7. Graphs</a></h2>

<p> A collection of triples is called a <em>graph</em>.</p>

<p> For more information on the concepts described above, see [<a class="nref" href="#ref_RDF-CONCEPTS">RDF-CONCEPTS</a>]. RDFa additionally defines the following terms:</p>

<h2><a id="sec_3.8." name="sec_3.8.">3.8. Compact URIs</a></h2>

<p>In order to allow for the compact expression of RDF statements, RDFa allows the contraction of all [<a href="#T_URI_reference" class="tref">URI reference</a>]s into a form called a 'compact URI',
or <span class="datatype"><a href="#dt_curie">CURIE</a></span>. A detailed discussion of this mechanism is in section <a href="#s_curieprocessing">CURIE and URI Processing</a>.</p>

<p>Note that CURIEs are only used in the mark-up and Turtle examples, and will never appear in the generated [<a href="#T_triple" class="tref">triple</a>]s, which are defined in RDF to use [<a href= 
"#T_URI_reference" class="tref">URI reference</a>]s.</p>

<p>Full details on how CURIEs are processed is in the section titled <a href="#s_curieprocessing">CURIE Processing</a>.</p>

<h2><a id="sec_3.9." name="sec_3.9.">3.9. XHTML Fragments and RDFa</a></h2>

<p>A growing use of embedded metadata is to take fragments of mark-up and move them from one document to another. This may happen through the use of tools, such as drag-and-drop in a browser, or
through snippets of code provided to authors for inclusion in their documents. (A good example of the latter is the licensing fragment provided by Creative Commons.)</p>

<p>However, those involved in creating fragments (either by building tools, or authoring snippets), should be aware that this specification does not say how fragments of XHTML+RDFa should be
processed whilst they are 'outside' of a complete XHTML+RDFa document (although future versions of this or related specifications may do so).</p>

<p>Developers of tools that process fragments, or authors of fragments for manual inclusion, should also bear in mind what will happen to their fragment once it is included in an XHTML+RDFa document,
and are advised to carefully consider the amount of 'context' information that will be needed in order to ensure a correct interpretation of their fragment.</p>

<h2><a id="sec_3.10." name="sec_3.10.">3.10. A description of RDFa in RDF terms</a></h2>

<p> The following is a brief description of RDFa in terms of the RDF terminology introduced here. It may be useful to readers with an RDF background:</p>

<p>The aim of RDFa is to allow a single [<a href="#T_RDF_graph" class="tref">RDF graph</a>] to be carried in various types of document mark-up. However, this specification deals only with RDFa in
XHTML. An [<span class="tdef" id="T_RDF_graph">RDF graph</span>] comprises [<span class="tdef" id="T_node">node</span>]s linked by relationships. The basic unit of an [<a href="#T_RDF_graph" class= 
"tref">RDF graph</a>] is a [<a href="#T_triple" class="tref">triple</a>], in which a subject [<a href="#T_node" class="tref">node</a>] is linked to an object [<a href="#T_node" class="tref">node</a>]
via a [<a href="#T_predicate" class="tref">predicate</a>]. The [<span class="tdef" id="T_subject">subject</span>] [<a href="#T_node" class="tref">node</a>] is always either a [<a href= 
"#T_URI_reference" class="tref">URI reference</a>] or a [<span class="tdef" id="T_bnode">blank node (or bnode)</span>], the [<span class="tdef" id="T_predicate">predicate</span>] is <em>always</em> a
[<a href="#T_URI_reference" class="tref">URI reference</a>], and the object of a statement can be a [<a href="#T_URI_reference" class="tref">URI reference</a>], a [<a href="#T_literal" class=
"tref">literal</a>], or a [<a href="#T_bnode" class="tref">bnode</a>].</p>

<p>In RDFa, a subject [<a href="#T_URI_reference" class="tref">URI reference</a>] is generally indicated using <span class="aref">@about</span>, and predicates are represented using one of <span
class="aref">@property</span>, <span class="aref">@rel</span>, or <span class="aref">@rev</span>. Objects which are [<a href="#T_URI_reference" class="tref">URI reference</a>]s are represented using
<span class="aref">@href</span>, <span class="aref">@resource</span> or <span class="aref">@src</span>, whilst objects that are [<a href="#T_literal" class="tref">literal</a>]s are represented either
with <span class="aref">@content</span> or the content of the element in question (with an optional datatype expressed using <span class="aref">@datatype</span>).</p>

<!--OddPage-->
<h1><a id="s_conformance" name="s_conformance">4. Conformance Requirements</a></h1>

<p><em>This section is normative.</em></p>

<p>The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [<a class="nref" href= 
"#ref_RFC2119">RFC2119</a>].</p>

<p>Note that all examples in this document are informative, and are not meant to be interpreted as normative requirements.</p>

<h2><a id="docconf" name="docconf">4.1. Document Conformance</a></h2>

<p>A strictly conforming XHTML+RDFa document is a document that requires only the facilities described as mandatory in this specification. Such a document satisfies the following criteria:</p>

<ol>
<li>
<p><span class="must">The document MUST conform to the constraints expressed in the schemas in <!-- 
<a href="xhtml11_schema.html#a_xhtml11_schema">Appendix&#160;D -
XHTML 1.1 Schema</a> and
--> <a href="#a_xhtmlrdfa_dtd">Appendix&#160;A - XHTML+RDFa Document Type Definition</a>.</span></p>
</li>

<li>
<p><span class="must">The local part of the root element of the document MUST be <code>html</code>.</span></p>
</li>

<li>
<p><span class="must">The start tag of the root element of the document MUST explicitly contain a default namespace declaration for the XHTML namespace [<a class="nref" href="#ref_XMLNS">XMLNS</a>].
The namespace URI for XHTML is defined to be <code>http://www.w3.org/1999/xhtml</code>.</span></p>

<div class="example">
<p>Sample root element</p>

<pre>
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
</pre>
</div>
</li>

<li><span class="should">There SHOULD be a <span class="aref">@version</span> attribute on the <code>html</code> element with the value "<code>XHTML+RDFa 1.0</code>"</span></li>
</ol>

<div class="example">
<p>Example of an XHTML+RDFa 1.0 document</p>

<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;<span class='hilite'>html</span> <span class='hilite'>xmlns="http://www.w3.org/1999/xhtml"</span> 
    <span class='hilite'>version="XHTML+RDFa 1.0"</span>
    xml:lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;Virtual Library&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;Moved to &lt;a href="http://example.org/"&gt;example.org&lt;/a&gt;.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>Note that in this example, the XML declaration is included. An XML declaration like the one above is not required in all XML documents. <span class="should">XHTML document authors SHOULD use XML
declarations in all their documents.</span> <span class="must">XHTML document authors MUST use an XML declaration when the character encoding of the document is other than the default UTF-8 or UTF-16
and no encoding is specified by a higher-level protocol.</span></p>

<p><span class="should">XHTML+RDFa documents SHOULD be labeled with the Internet Media Type "application/xhtml+xml" as defined in [<a class="nref" href="#ref_RFC3236">RFC3236</a>]</span>. For further
information on using media types with XHTML family markup languages, see the informative note [<a class="nref" href="#ref_XHTMLMIME">XHTMLMIME</a>].</p>

<h2><a id="uaconf" name="uaconf">4.2. User Agent Conformance</a></h2>

<p><span class="must">A conforming user agent MUST support all of the features required in this specification.</span> <span class="must">A conforming user agent must also support the User Agent
conformance requirements as defined in XHTML Modularization [<a class="nref" href="#ref_XHTMLMOD">XHTMLMOD</a>] section on "XHTML Family User Agent Conformance".</span></p>

<h2><a id="processorconf" name="processorconf">4.3. RDFa Processor Conformance</a></h2>

<p><span class="must">A conforming RDFa Processor MUST make available to a consuming application a single [<a href="#T_RDF_graph" class="tref">RDF graph</a>] containing all possible triples generated
by using the rules in the <a href="#s_model">Processing Model</a> section.</span> This specification uses the term [<span class="tdef" id="T_default_graph">default graph</span>] to mean all of the
triples asserted by a document according to the <a href="#s_model">Processing Model</a> section.</p>

<p><span class="must">A conforming RDFa Processor MAY make available additional triples that have been generated using rules not described here, but these triples MUST NOT be made available in the
[<a href="#T_default_graph" class="tref">default graph</a>].</span> (Whether these additional triples are made available in one or more additional [<a href="#T_RDF_graph" class="tref">RDF graph</a>]s
is implementation-specific, and therefore not defined here.)</p>

<p><span class="must">Since XHTML+RDFa is based upon XHTML Modularization [<a class="nref" href="#ref_XHTMLMOD">XHTMLMOD</a>], and since XHTML Modularization requires that whitespace is preserved,
conforming processors must preserve whitespace in both [<a href="#T_plain_literal" class="tref">plain literal</a>]s and [<a href="#s_xml_literals" class="tref">XML literals</a>].</span> However, it
may be the case that the architecture in which a processor operates does not make all whitespace available. It is therefore advisable for authors who would like to make their documents consumable
across different processors, to remove any unnecessary whitespace in their mark-up.</p>

<!--OddPage-->
<h1><a id="s_model" name="s_model">5. Processing Model</a></h1>

<p><em>This section is normative.</em></p>

<p> This section looks at a generic set of processing rules for creating a set of triples that represent the structured data present in an XHTML+RDFa document. Processing need not follow the DOM
traversal technique outlined here, although the effect of following some other manner of processing must be the same as if the processing outlined here were followed. The processing model is
explained using the idea of DOM traversal which makes it easier to describe (particularly in relation to the [<a href="#T_evaluation_context" class="tref">evaluation context</a>]).</p>

<div class="explanation">Note that in this section, explanations about the processing model or guidance to implementors are enclosed in sections like this.</div>

<h2><a id="sec_5.1." name="sec_5.1.">5.1. Overview</a></h2>

<p> Parsing a document for RDFa triples is carried out by starting at the document object, and then visiting each of its child elements in turn, in document order, applying processing rules.
Processing is recursive in that for each child element the processor also visits each of <em>its</em> child elements, and applies the same processing rules.</p>

<p> (Note that in some environments there will be little difference between starting at the root element of the document, and starting at the document object itself. However, we define it this way
since in some environments important information is present at the document object level which is not present on the root element.)</p>

<p> As processing continues, rules are applied which may generate triples, and may also change the [<a href="#T_evaluation_context" class="tref">evaluation context</a>] information that will then be
used when processing descendant elements.</p>

<p> Note that we don't say anything about what should happen to the triples generated, or whether more triples might be generated during processing than are outlined here. However, to be conformant,
an RDFa processor needs to act as if at a minimum the rules in this section are applied, and a single [RDF graph] produced. As described in the <a href="#processorconf">RDFa Processor Conformance</a>
section, any additional triples generated MUST NOT appear in the [<a href="#T_default_graph" class="tref">default graph</a>].</p>

<h2><a id="sec_5.2." name="sec_5.2.">5.2. Evaluation Context</a></h2>

<p> During processing, each rule is applied using information provided by an [<a href="#T_evaluation_context" class="tref">evaluation context</a>]. An initial context is created when processing
begins, with the following set of values:</p>

<ul>
<li>The [<span class="tdef" id="T_base">base</span>]. This will usually be the URL of the document being processed, but it could be some other URL, set by some other mechanism, such as the XHTML
<code>base</code> element. The important thing is that it establishes a URL against which relative paths can be resolved.</li>

<li>The [<span class="tdef" id="T_parent_subject">parent subject</span>]. The initial value will be the same as the initial value of [<a href="#T_base" class="tref">base</a>], but it will usually
change during the course of processing.</li>

<li>The [<span class="tdef" id="T_parent_object">parent object</span>]. In some situations the object of a statement becomes the subject of any nested statements, and this property is used to convey
this value. Note that this value may be a bnode, since in some situations a number of nested statements are grouped together on one bnode. This means that the bnode must be set in the containing
statement and passed down, and this property is used to convey this value.</li>

<li>A list of current, in-scope [<a href="#T_list_of_URI_mappings" class="tref">URI mappings</a>].</li>

<li>A list of [<span class="tdef" id="T_incomplete_triple">incomplete triple</span>]s. A triple can be incomplete when no object resource is provided alongside a predicate that requires a resource
(i.e., <span class="aref">@rel</span> or <span class="aref">@rev</span>). The triples can be completed when a resource becomes available, which will be when the next subject is specified (part of the
process called [<a href="#T_chaining" class="tref">chaining</a>]).</li>

<li>The [<span class="tdef" id="T_language">language</span>]. Note that there is no default language.</li>
</ul>

<p>During the course of processing new [<a href="#T_evaluation_context" class="tref">evaluation context</a>]s are created which are passed to each child element. The rules described below will
determine the values of the items in the context. Additionally, some rules will cause new triples to be created by combining information provided by an element with information from the [<a href= 
"#T_evaluation_context" class="tref">evaluation context</a>].</p>

<p>During the course of processing a number of locally scoped values are needed, as follows:</p>

<ul>
<li>An initially empty list of [<a href="#T_URI_mapping" class="tref">URI mapping</a>]s, called the [<span class="tdef" id="T_local_list_of_URI_mappings">local list of URI mappings</span>].</li>

<li>An initially empty [<span class="tdef" id="T_list_of_incomplete_triples">list of incomplete triples</span>], called the [<span class="tdef" id="T_local_list_of_incomplete_triples">local list of
incomplete triples</span>].</li>

<li>An initially empty [<a href="#T_language" class="tref">language</a>] value.</li>

<li>A [<span class="tdef" id="T_recurse">recurse</span>] flag. Processing generally continues recursively through the entire tree of elements available. However, if an author indicates that some
branch of the tree should be treated as an XML literal, no further processing should take place on that branch, and setting this flag to <code>false</code> would have that effect.</li>

<li>A [<span class="tdef" id="T_skip_element">skip element</span>] flag, which indicates whether the [<a href="#T_current_element" class="tref">current element</a>] can safely be ignored since it has
no relevant RDFa attributes. Note that descendant elements will still be processed.</li>

<li>A [<span class="tdef" id="T_new_subject">new subject</span>] value, which once calculated will set the [<a href="#T_parent_subject" class="tref">parent subject</a>] property in an [<a href= 
"#T_evaluation_context" class="tref">evaluation context</a>], as well as being used to complete any [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>]s, as described in the next
section.</li>

<li>A value for the [<span class="tdef" id="T_current_object_literal">current object literal</span>], the literal to use when creating triples that have a literal object.</li>

<li>A value for the [<span class="tdef" id="T_current_object_resource">current object resource</span>], the resource to use when creating triples that have a resource object.</li>
</ul>

<h2><a id="sec_5.3." name="sec_5.3.">5.3. Chaining</a></h2>

<p>RDFa has the notion of [<span class="tdef" id="T_chaining">chaining</span>] which aims to combine statements together in as intuitive a way as possible, so as avoid unnecessary repetition of
mark-up. For example, if an author were to add statements as children of an object that was a resource, these statements should be interpreted as being about that resource:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:birthPlace" <span class='hilite'>resource="http://dbpedia.org/resource/Germany"</span>&gt;
    <span class='hilite'>&lt;span property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;</span>
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> In this example we can see that an object resource ('Germany'), has become the subject for nested statements. This mark-up also illustrates the basic chaining pattern of 'A has a B has a C'
(i.e., Einstein has a birth place of Germany, which has a long name of "Federal Republic of Germany").</p>

<p>It's also possible for the subject of nested statements to provide the object for <em>containing</em> statements&#8212;essentially the reverse of the example we have just seen. To illustrate,
we'll take an example of the type of chaining just described, and show how it could be marked up more efficiently. To start, we mark up the fact that Albert Einstein had both German and American
citizenship:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  <span class='hilite'>&lt;div rel="dbp:citizenship" resource="http://dbpedia.org/resource/Germany"&gt;&lt;/div&gt;</span>
  <span class='hilite'>&lt;div rel="dbp:citizenship" resource="http://dbpedia.org/resource/United_States"&gt;&lt;/div&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p>Now, we show the same information, but this time we create an [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>] from the citizenship part, and then use any number of further
subjects to 'complete' that triple, as follows:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein" rel="dbp:citizenship"&gt;
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/Germany"&gt;&lt;/span&gt;</span>
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/United_States"&gt;&lt;/span&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> In this example, the [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>] actually gets completed twice, once for Germany and once for the USA, giving exactly the same information
as we had in the earlier example:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  dbp:citizenship &lt;http://dbpedia.org/resource/Germany&gt; .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  dbp:citizenship &lt;http://dbpedia.org/resource/United_States&gt; .
</pre>
</div>

<p> Chaining can sometimes involve elements containing relatively minimal mark-up, for example showing only one resource, or only one predicate. Here the <code>img</code> element is used to carry a
picture of Einstein:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;div rel="foaf:depiction"&gt;
    &lt;img src="http://en.wikipedia.org/wiki/Image:Albert_Einstein_Head.jpg" /&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> When such minimal mark-up is used, any of the resource-related attributes could act as a subject or an object in the chaining:</p>

<div class="example">
<pre>
    &lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
      &lt;div rel="dbp:citizenship"&gt;
        &lt;span about="http://dbpedia.org/resource/Germany"&gt;&lt;/span&gt;
        &lt;span about="http://dbpedia.org/resource/United_States"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
</pre>
</div>

<h2><a id="s_curieprocessing" name="s_curieprocessing">5.4. CURIE and URI Processing</a></h2>

<p> Since RDFa is ultimately a means for transporting RDF, then a key concept is the <em>resource</em> and its manifestation as a URI. Since RDF deals with complete URIs (not relative paths), then
when converting RDFa to triples, any relative URIs will need to be resolved relative to the base URI, using the algorithm defined in section 5 of RFC 3986 [<a class="nref" href="#ref_URI">URI</a>],
<em>Reference Resolution</em>.</p>

<p> Many of the attributes that hold URIs are also able to carry 'compact URIs' or CURIEs. A CURIE is a convenient way to represent a long URI, by replacing a leading section of the URI with a
substitution token. It's possible for authors to define a number of substitution tokens as they see fit; the full URI is obtained by locating the mapping defined by a token from a list of in-scope
tokens, and then simply concatenating the second part of the CURIE onto the mapped value.</p>

<p>For example, the full URI for Albert Einstein on DPPedia is:</p>

<div class="example">
<pre>
http://dbpedia.org/resource/Albert_Einstein
</pre>
</div>

<p>This can be shortened by authors to make the information easier to manage, using a CURIE. The first step is for the author to create a prefix mapping that links a prefix to some leading segment of
the URI. In RDFa these mappings are expressed using the XML namespace syntax:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>xmlns:db="http://dbpedia.org/"</span>&gt;
  ...
&lt;/div&gt;
</pre>
</div>

<p>Once the prefix has been established, an author can then use it to shorten a URI as follows:</p>

<div class="example">
<pre>
&lt;div xmlns:db="http://dbpedia.org/"&gt;
  &lt;div about="<span class='hilite'>[db:resource/Albert_Einstein]</span>"&gt;
    ...
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> The author is free to break the URI at any point, as long as it begins at the left end. However, since a common use of CURIEs is to make available libraries of terms and values, the prefix will
usually be mapped to some common segment that provides the most re-use, often provided by those who manage the library of terms. For example, since DBPedia contains an enormous list of resources, it
is more efficient to create a prefix mapping that uses the base location of the resources:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>xmlns:dbr="http://dbpedia.org/resource/"</span>&gt;
  &lt;div about="<span class='hilite'>[dbr:Albert_Einstein]</span>"&gt;
    ...
  &lt;/div&gt;
  &lt;div about="<span class='hilite'>[dbr:Baruch_Spinoza]</span>"&gt;
    ...
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<h3><a id="sec_5.4.1." name="sec_5.4.1.">5.4.1. Scoping of Prefix Mappings</a></h3>

<p> Since CURIE mappings are created by authors via the XML namespace syntax [<a class="nref" href="#ref_XMLNS">XMLNS</a>] an RDFa processor MUST take into account the hierarchical nature of prefix
declarations. For example, the URIs expressed by the following two CURIEs are different, despite the common prefix, because the prefix mappings are locally scoped:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>xmlns:dbr="http://dbpedia.org/resource/"</span>&gt;
  &lt;div about="<span class='hilite'>[dbr:Albert_Einstein]</span>"&gt;
    ...
  &lt;/div&gt;
&lt;/div&gt;
&lt;div <span class='hilite'>xmlns:dbr="http://someotherdb.org/resource/"</span>&gt;
  &lt;div about="<span class='hilite'>[dbr:Albert_Einstein]</span>"&gt;
    ...
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<h3><a id="s_convertingcurietouri" name="s_convertingcurietouri">5.4.2. Converting a CURIE to a URI</a></h3>

<p> Since a CURIE is merely a means for abbreviating a URI, its <em>value</em> is a URI, rather than the abbreviated form. Obtaining a URI from a CURIE involves the following steps:</p>

<ol>
<li>Split the CURIE at the colon to obtain the prefix and the resource.</li>

<li>Using the prefix and the current in-scope mappings, obtain the URI that the prefix maps to.</li>

<li>Concatenate the mapped URI with the resource value, to obtain an absolute URI.</li>
</ol>

<div class="explanation">Note that it is generally considered a good idea not to use relative paths in namespace declarations, but since it is possible that an author may ignore this guidance, it is
further possible that the URI obtained from a CURIE is relative. However, since all URIs must be resolved relative to [<a href="#T_base" class="tref">base</a>] before being used to create triples,
the use of relative paths should not have any effect on processing.</div>

<h3><a id="sec_5.4.3." name="sec_5.4.3.">5.4.3. General Use of CURIEs in Attributes</a></h3>

<p> There are a number of ways that attributes will make use of CURIEs, and they need to be dealt with differently. These are:</p>

<ol>
<li>An attribute may allow one or more CURIE-only values, disallowing other types of value. In this case any value that is not a 'curie' according to the definition in the section <a href=
"#s_curies">CURIE Syntax Definition</a> MUST be ignored; this means that not only will there be no error reporting, but also the RDFa processor should act as if the value simply did not exist.</li>

<li>An attribute may allow one or more values that are a mixture of CURIEs and full URIs. In this case any value that is not surrounded by square brackets, as defined by 'safe_curie' in the section
<a href="#s_curies">CURIE Syntax Definition</a>, will be processed as if it was a URI. If the value <em>is</em> surrounded by square brackets, then the inner content must conform to the 'curie'
definiton, and as before, if it does not then the value MUST be ignored.</li>
</ol>

<p>An example of an attribute that can contain CURIE and non-CURIE values is <span class="aref">@about</span>. As described, any CURIEs expressed in the attribute must follow the format of a [<a
href="#T_safe_CURIE" class="tref">safe CURIE</a>]. So to express a URI directly, an author might do this:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>about="http://dbpedia.org/resource/Albert_Einstein"</span>&gt;
  ...
&lt;/div&gt;
</pre>
</div>

<p>whilst to express a CURIE they would do this:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>about="[dbr:Albert_Einstein]"</span>&gt;
  ...
&lt;/div&gt;
</pre>
</div>

<p> Since non-CURIE values MUST be ignored, the following value in <span class="aref">@about</span> would <em>not</em> set a new subject, since the CURIE has no prefix separator.</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>about="[Albert_Einstein]"</span>&gt;
  ...
&lt;/div&gt;
</pre>
</div>

<p>However, this mark-up <em>would</em> set a subject, since it is not a CURIE, but a valid relative URI:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>about="Albert_Einstein"</span>&gt;
  ...
&lt;/div&gt;
</pre>
</div>

<p> There is one exception to this; <span class="aref">@rel</span> and <span class="aref">@rev</span> can also take any value from the list in the section on <a href="#A_rel">The rel attribute</a>,
and any matching value MUST be treated as if it was a full URI with the XHTML vocabulary as its prefix mapping. This is discussed further in the next section.</p>

<h3><a id="sec_5.4.4." name="sec_5.4.4.">5.4.4. Use of CURIEs in Specific Attributes</a></h3>

<p> The general rules discussed in the previous section apply to the RDFa attributes in the following ways:</p>

<ul>
<li><span class="aref">@about</span> and <span class="aref">@resource</span> support either a URI or a CURIE (expressed as a [<a href="#T_safe_CURIE" class="tref">safe CURIE</a>] ).</li>

<li><span class="aref">@href</span> and <span class="aref">@src</span> support only a URI.</li>

<li><span class="aref">@property</span>, <span class="aref">@datatype</span> and <span class="aref">@typeof</span> support only CURIE values.</li>

<li><span class="aref">@rel</span> and <span class="aref">@rev</span> support both XHTML link types and CURIEs.</li>
</ul>

<p> Note that unlike <span class="aref">@about</span> and <span class="aref">@resource</span>, <span class="aref">@rel</span> and <span class="aref">@rev</span> do not differentiate their two types
of data by using [<a href="#T_safe_CURIE" class="tref">safe CURIE</a>]s. Instead, any value that matches an entry in the list of link types in the section <a href="#A_rel">The rel attribute</a>, MUST
be treated as if it was a URI within the XHTML vocabulary, and all other values must be CURIEs. This means that either of the following examples:</p>

<div class="example">
<pre>
&lt;link rel="<span class='hilite'>next</span>" href="http://example.org/page2.html" /&gt;
&lt;link rel="<span class='hilite'>xhv:next</span>" href="http://example.org/page2.html" /&gt;
</pre>
</div>

<p>would generate this triple:</p>

<div class="texample">
<pre>
&lt;&gt; &lt;http://www.w3.org/1999/xhtml/vocab#next&gt; &lt;http://example.org/page2.html&gt; .
</pre>
</div>

<p> <span class="mustnot">Note that only values in the link type list have this special behaviour, which means that any value that is not in the list <em>and</em> is not a valid CURIE MUST not
generate triples in the [<a href="#T_default_graph" class="tref">default graph</a>]</span> . For example, no triples would be generated in the [<a href="#T_default_graph" class="tref">default
graph</a>] by the following mark-up:</p>

<div class="example">
<pre>
&lt;link rel="<span class='hilite'>foobar</span>" href="http://example.org/page7.html" /&gt;
</pre>
</div>

<h3><a id="sec_5.4.5." name="sec_5.4.5.">5.4.5. Referencing Blank Nodes</a></h3>

<p>In RDFa, it is possible to establish relationships using various types of resource references, including [<a href="#T_bnode" class="tref">bnode</a>]s. If a subject or object is defined using a
CURIE, and that CURIE explicitly names a [<a href="#T_bnode" class="tref">bnode</a>], then a conforming parser <span class="must">MUST</span> create the bnode when it is encountered during parsing.
The parser <span class="must">MUST</span> also ensure that no bnodes created automatically (as a result of [<a href="#T_chaining" class="tref">chaining</a>]) have names that collide with bnodes that
are defined by explicit reference in a CURIE.</p>

<p>Consider the following example:</p>

<div class="example">
<pre>
&lt;link about="[_:john]" rel="foaf:mbox"
  href="mailto:john@example.org" /&gt;
&lt;link about="[_:sue]" rel="foaf:mbox"
  href="mailto:sue@example.org" /&gt;
&lt;link about="[_:john]" rel="foaf:knows"
  resource="[_:sue]" /&gt;
</pre>
</div>

<p>In the above fragment, two bnodes are explicitly created as the subject of triples. Those bnodes are then referenced to demonstrate the relationship between the parties. After processing, the
following triples will be generated:</p>

<div class="texample">
<pre>
_:john foaf:mbox &lt;mailto:john@example.org&gt; .
_:sue foaf:mbox &lt;mailto:sue@example.org&gt; .
_:john foaf:knows _:sue .
</pre>
</div>

<h2><a id="sec_5.5." name="sec_5.5.">5.5. Sequence</a></h2>

<p> Processing would normally begin after the document to be parsed has been completely loaded. However, there is no requirement for this to be the case, and it is certainly possible to use a
stream-based approach, such as SAX [http://en.wikipedia.org/wiki/SAX] to extract the RDFa information. However, if some approach other than the DOM traversal technique defined here is used, it is
important to ensure that any <code>meta</code> or <code>link</code> elements processed in the <code>head</code> of the document honor any occurrences of <code>base</code> which may appear <em>
after</em> those elements. (In other words, XHTML processing rules must still be applied, even if document processing takes place in a non-HTML environment such as a search indexer.)</p>

<p> At the beginning of processing, an initial [<span class="tdef" id="T_evaluation_context">evaluation context</span>] is created, as follows:</p>

<ul>
<li>the [<a href="#T_base" class="tref">base</a>] is set to either the URL of the document or the value specified in the <code>base</code> element, if present; 

<div class="explanation">Note that XHTML 1.1, and therefore XHTML+RDFa, does NOT permit the use of <span class="aref">@xml:base</span>, so the only way to change the [<a href="#T_base" class=
"tref">base</a>] is via the <code>base</code> element. If some other XML dialect that supports <span class="aref">@xml:base</span> eventually implements RDFa, a conforming RDFa parser for that host
language will likely process <span class="aref">@xml:base</span> and use its value to set [<a href="#T_base" class="tref">base</a>].</div>
</li>

<li>the [<a href="#T_parent_subject" class="tref">parent subject</a>] is set to the [<a href="#T_base" class="tref">base</a>] value;</li>

<li>the [<a href="#T_parent_object" class="tref">parent object</a>] is set to null;</li>

<li>the [<span class="tdef" id="T_list_of_URI_mappings">list of URI mappings</span>] is empty;</li>

<li>the [<a href="#T_list_of_incomplete_triples" class="tref">list of incomplete triples</a>] is empty;</li>

<li>the [<a href="#T_language" class="tref">language</a>] is set to null.</li>
</ul>

<p> Processing begins by applying the processing rules below to the document object, in the context of this initial [<a href="#T_evaluation_context" class="tref">evaluation context</a>]. All elements
in the tree are also processed according to the rules described below, depth-first, although the [<a href="#T_evaluation_context" class="tref">evaluation context</a>] used for each set of rules will
be based on previous rules that may have been applied.</p>

<p> The processing rules are:</p>

<ol>
<li>First, the local values are initialized, as follows: 

<ul>
<li>the [<a href="#T_recurse" class="tref">recurse</a>] flag is set to 'true';</li>

<li>the [<a href="#T_skip_element" class="tref">skip element</a>] flag is set to 'false';</li>

<li>[<a href="#T_new_subject" class="tref">new subject</a>] is set to null;</li>

<li>[<a href="#T_current_object_resource" class="tref">current object resource</a>] is set to null;</li>

<li>the [<a href="#T_local_list_of_URI_mappings" class="tref">local list of URI mappings</a>] is set to the list of URI mappings from the [<a href="#T_evaluation_context" class="tref">evaluation
context</a>];</li>

<li>the [<a href="#T_local_list_of_incomplete_triples" class="tref">local list of incomplete triples</a>] is set to null;</li>

<li>the [<a href="#T_current_language" class="tref">current language</a>] value is set to the [<a href="#T_language" class="tref">language</a>] value from the [<a href="#T_evaluation_context" class= 
"tref">evaluation context</a>].</li>
</ul>

<div class="explanation">Note that some of the local variables are temporary containers for values that will be passed to descendant elements via an [<a href="#T_evaluation_context" class=
"tref">evaluation context</a>]. In some cases the containers will have the same name, so to make it clear which is being acted upon in the following steps, the local version of an item will generally
be referred to as such.</div>
</li>

<li>Next the [<span class="tdef" id="T_current_element">current element</span>] is parsed for [<span class="tdef" id="T_URI_mapping">URI mapping</span>]s and these are added to the [<a href= 
"#T_local_list_of_URI_mappings" class="tref">local list of URI mappings</a>]. Note that a [<a href="#T_URI_mapping" class="tref">URI mapping</a>] will simply overwrite any current mapping in the list
that has the same name; 

<div class="explanation">Mappings are provided by <span class="aref">@xmlns</span>. The value to be mapped is set by the XML namespace prefix, and the value to map is the value of the
attribute&#8212;a URI. Note that the URI is not processed in any way; in particular if it is a relative path it is not resolved against the current [<a href="#T_base" class="tref">base</a>]. Authors
are advised to follow best practice for using namespaces, which includes not using relative paths.</div>
</li>

<li>The [<a href="#T_current_element" class="tref">current element</a>] is also parsed for any language information, and if present, [<a href="#T_current_language" class="tref">current language</a>]
is set accordingly; 

<div class="explanation">Language information can be provided using the general-purpose XML attribute <span class="aref">@xml:lang</span>.</div>
</li>

<li>If the [<a href="#T_current_element" class="tref">current element</a>] contains no <span class="aref">@rel</span> or <span class="aref">@rev</span> attribute, then the next step is to establish a
value for [<a href="#T_new_subject" class="tref">new subject</a>]. Any of the attributes that can carry a resource can set [<a href="#T_new_subject" class="tref">new subject</a>]; 

<div class="explanation">[<a href="#T_new_subject" class="tref">new subject</a>] is set to the URI obtained from the first match from the following rules: 

<ul>
<li>by using the URI from <span class="aref">@about</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>;</li>

<li><em>otherwise</em>, by using the URI from <span class="aref">@src</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>.</li>

<li><em>otherwise</em>, by using the URI from <span class="aref">@resource</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>;</li>

<li><em>otherwise</em>, by using the URI from <span class="aref">@href</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>.</li>
</ul>

<p>If no URI is provided by a resource attribute, then the first match from the following rules will apply:</p>

<ul>
<li>if the element is the <code>head</code> or <code>body</code> element then act as if there is an empty <span class="aref">@about</span> present, and process it according to the rule for <span
class="aref">@about</span>, above;</li>

<li>if <span class="aref">@typeof</span> is present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>, then [<a href="#T_new_subject" class="tref">new
subject</a>] is set to be a newly created [<a href="#T_bnode" class="tref">bnode</a>].</li>

<li><em>otherwise</em>, if [<a href="#T_parent_object" class="tref">parent object</a>] is present, [<a href="#T_new_subject" class="tref">new subject</a>] is set to the value of [<a href= 
"#T_parent_object" class="tref">parent object</a>]. Additionally, if <span class="aref">@property</span> is <em>not</em> present then the [<a href="#T_skip_element" class="tref">skip element</a>]
flag is set to 'true';</li>
</ul>
</div>
</li>

<li>If the [<a href="#T_current_element" class="tref">current element</a>] <em>does</em> contain a <span class="aref">@rel</span> or <span class="aref">@rev</span> attribute, then the next step is to
establish <em>both</em> a value for [<a href="#T_new_subject" class="tref">new subject</a>] and a value for [<a href="#T_current_object_resource" class="tref">current object resource</a>]: 

<div class="explanation">[<a href="#T_new_subject" class="tref">new subject</a>] is set to the URI obtained from the first match from the following rules: 

<ul>
<li>by using the URI from <span class="aref">@about</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>;</li>

<li><em>otherwise</em>, by using the URI from <span class="aref">@src</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>.</li>
</ul>

<p>If no URI is provided then the first match from the following rules will apply:</p>

<ul>
<li>if the element is the <code>head</code> or <code>body</code> element then act as if there is an empty <span class="aref">@about</span> present, and process it according to the rule for <span
class="aref">@about</span>, above;</li>

<li>if <span class="aref">@typeof</span> is present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>, then [<a href="#T_new_subject" class="tref">new
subject</a>] is set to be a newly created [<a href="#T_bnode" class="tref">bnode</a>];</li>

<li><em>otherwise</em>, if [<a href="#T_parent_object" class="tref">parent object</a>] is present, [<a href="#T_new_subject" class="tref">new subject</a>] is set to that.</li>
</ul>

<p>Then the [<a href="#T_current_object_resource" class="tref">current object resource</a>] is set to the URI obtained from the first match from the following rules:</p>

<ul>
<li>by using the URI from <span class="aref">@resource</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>;</li>

<li><em>otherwise</em>, by using the URI from <span class="aref">@href</span>, if present, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>.</li>
</ul>

<p>Note that final value of the [<a href="#T_current_object_resource" class="tref">current object resource</a>] will either be null (from initialization) or a full URI.</p>
</div>
</li>

<li>If in any of the previous steps a [<a href="#T_new_subject" class="tref">new subject</a>] was set to a non-null value, it is now used to provide a subject for type values; 

<div class="explanation">One or more 'types' for the [<a href="#T_new_subject" class="tref">new subject</a>] can be set by using <span class="aref">@typeof</span>. If present, the attribute must
contain one or more URIs, obtained according to the section on <a href="#s_curieprocessing">URI and CURIE Processing</a>, each of which is used to generate a triple as follows: 

<dl>
<dt>subject</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>

<dt>predicate</dt>

<dd>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</dd>

<dt>object</dt>

<dd>full URI of 'type'</dd>
</dl>
</div>

<div class="explanation">Note that none of this block is executed if there is no [<a href="#T_new_subject" class="tref">new subject</a>] value, i.e., [<a href="#T_new_subject" class="tref">new
subject</a>] remains null.</div>
</li>

<li>If in any of the previous steps a [<a href="#T_current_object_resource" class="tref">current object resource</a>] was set to a non-null value, it is now used to generate triples: 

<div class="explanation">Predicates for the [<a href="#T_current_object_resource" class="tref">current object resource</a>] can be set by using one or both of the <span class="aref">@rel</span> and
<span class="aref">@rev</span> attributes: 

<ul>
<li>If present, <span class="aref">@rel</span> may contain one or more URIs, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a> each of which is used to
generate a triple as follows: 

<dl>
<dt>subject</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>

<dt>predicate</dt>

<dd>full URI</dd>

<dt>object</dt>

<dd>[<a href="#T_current_object_resource" class="tref">current object resource</a>]</dd>
</dl>
</li>

<li>If present, <span class="aref">@rev</span> may contain one or more URIs, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a> each of which is used to
generate a triple as follows: 

<dl>
<dt>subject</dt>

<dd>[<a href="#T_current_object_resource" class="tref">current object resource</a>]</dd>

<dt>predicate</dt>

<dd>full URI</dd>

<dt>object</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>
</dl>
</li>
</ul>
</div>
</li>

<li>If however [<a href="#T_current_object_resource" class="tref">current object resource</a>] was set to null, but there are predicates present, then they must be stored as [<a href= 
"#T_incomplete_triple" class="tref">incomplete triple</a>]s, pending the discovery of a subject that can be used as the object. Also, [<a href="#T_current_object_resource" class="tref">current object
resource</a>] should be set to a newly created [<a href="#T_bnode" class="tref">bnode</a>]; 

<div class="explanation">Predicates for [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>]s can be set by using one or both of the <span class="aref">@rel</span> and <span class=
"aref">@rev</span> attributes: 

<ul>
<li>If present, <span class="aref">@rel</span> must contain one or more URIs, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a> each of which is added to
the [<a href="#T_local_list_of_incomplete_triples" class="tref">local list of incomplete triples</a>] as follows: 

<dl>
<dt>predicate</dt>

<dd>full URI</dd>

<dt>direction</dt>

<dd>forward</dd>
</dl>
</li>

<li>If present, <span class="aref">@rev</span> must contain one or more URIs, obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>, each of which is added to
the [<a href="#T_local_list_of_incomplete_triples" class="tref">local list of incomplete triples</a>] as follows: 

<dl>
<dt>predicate</dt>

<dd>full URI</dd>

<dt>direction</dt>

<dd>reverse</dd>
</dl>
</li>
</ul>
</div>
</li>

<li>The next step of the iteration is to establish any [<a href="#T_current_object_literal" class="tref">current object literal</a>]; 

<div class="explanation">Predicates for the [<a href="#T_current_object_literal" class="tref">current object literal</a>] can be set by using <span class="aref">@property</span>. If present, one or
more URIs are obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>, and then the actual literal value is obtained as follows: 

<ul>
<li>as a [<a href="#T_typed_literal" class="tref">typed literal</a>] if: 

<ul>
<li><span class="aref">@datatype</span> is present, and does not have an empty value, and is not set to <code>rdf:XMLLiteral</code>.</li>
</ul>

<p>The actual literal is either the value of <span class="aref">@content</span> (if present) <em>or</em> a string created by concatenating the value of all descendant text nodes, of the [<a href= 
"#T_current_element" class="tref">current element</a>] in turn. The final string includes the datatype URI, as described in [<a class="nref" href="#ref_RDF-CONCEPTS">RDF-CONCEPTS</a>], which will
have been obtained according to the section on <a href="#s_curieprocessing">CURIE and URI Processing</a>.</p>
</li>

<li>as a [<a href="#T_plain_literal" class="tref">plain literal</a>] if: 

<ul>
<li><span class="aref">@content</span> is present;</li>

<li><em>or</em> all children of the [<a href="#T_current_element" class="tref">current element</a>] are text nodes;</li>

<li><em>or</em> there are no child nodes (in which case the literal value is the empty string);</li>

<li><em>or</em> the body of the [<a href="#T_current_element" class="tref">current element</a>] <em>does</em> have non-text child nodes but <span class="aref">@datatype</span> is present, with an
empty value.</li>
</ul>

<p>Additionally, if there is a value for [<span class="tdef" id="T_current_language">current language</span>] then the value of the [<a href="#T_plain_literal" class="tref">plain literal</a>] should
include this language information, as described in [<a class="nref" href="#ref_RDF-CONCEPTS">RDF-CONCEPTS</a>]. The actual literal is either the value of <span class="aref">@content</span> (if
present) <em>or</em> a string created by concatenating the text content of each of the descendant elements of the [<a href="#T_current_element" class="tref">current element</a>] in document
order.</p>
</li>

<li>as an [<a href="#s_xml_literals" class="tref">XML literal</a>] if: 

<ul>
<li>the [<a href="#T_current_element" class="tref">current element</a>] has any child nodes that are not simply text nodes, and <span class="aref">@datatype</span> is not present, or is present, but
is set to <code>rdf:XMLLiteral</code>.</li>
</ul>

<p>The value of the [<a href="#s_xml_literals" class="tref">XML literal</a>] is a string created by serializing to text, all nodes that are descendants of the [<a href="#T_current_element" class=
"tref">current element</a>], i.e., not including the element itself, and giving it a datatype of <code>rdf:XMLLiteral</code>.</p>
</li>
</ul>

<p>The [<a href="#T_current_object_literal" class="tref">current object literal</a>] is then used with each predicate to generate a triple as follows:</p>

<dl>
<dt>subject</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>

<dt>predicate</dt>

<dd>full URI</dd>

<dt>object</dt>

<dd>[<a href="#T_current_object_literal" class="tref">current object literal</a>]</dd>
</dl>
</div>

<p>Once the triple has been created, if the [<span class="tdef" id="T_datatype">datatype</span>] of the [<a href="#T_current_object_literal" class="tref">current object literal</a>] is <code>
rdf:XMLLiteral</code>, then the [<a href="#T_recurse" class="tref">recurse</a>] flag is set to <code>false</code>.</p>
</li>

<li>If the [<a href="#T_skip_element" class="tref">skip element</a>] flag is 'false', <em>and</em> [<a href="#T_new_subject" class="tref">new subject</a>] was set to a non-null value, then any [<a
href="#T_incomplete_triple" class="tref">incomplete triple</a>]s <em>within the current context</em> should be completed: 

<div class="explanation">The [<a href="#T_list_of_incomplete_triples" class="tref">list of incomplete triples</a>] from the current [<a href="#T_evaluation_context" class="tref">evaluation
context</a>] (<em>not</em> the [<a href="#T_local_list_of_incomplete_triples" class="tref">local list of incomplete triples</a>]) will contain zero or more predicate URIs. This list is iterated, and
each of the predicates is used with [<a href="#T_parent_subject" class="tref">parent subject</a>] and [<a href="#T_new_subject" class="tref">new subject</a>] to generate a triple. Note that at each
level there are <em>two</em>, lists of [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>]s; one for the current processing level (which is passed to each child element in the
previous step), and one that was received as part of the [<a href="#T_evaluation_context" class="tref">evaluation context</a>]. It is the latter that is used in processing during this step.</div>

<div class="explanation">Note that each [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>] has a [<span class="tdef" id="T_direction">direction</span>] value that it used to
determine what will become the subject, and what will become the object, of each generated triple: 

<ul>
<li>If [<a href="#T_direction" class="tref">direction</a>] is 'forward' then the following triple is generated: 

<dl>
<dt>subject</dt>

<dd>[<a href="#T_parent_subject" class="tref">parent subject</a>]</dd>

<dt>predicate</dt>

<dd>the predicate from the iterated [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>]</dd>

<dt>object</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>
</dl>
</li>

<li>If [<a href="#T_direction" class="tref">direction</a>] is not 'forward' then this is the triple generated: 

<dl>
<dt>subject</dt>

<dd>[<a href="#T_new_subject" class="tref">new subject</a>]</dd>

<dt>predicate</dt>

<dd>the predicate from the iterated [<a href="#T_incomplete_triple" class="tref">incomplete triple</a>]</dd>

<dt>object</dt>

<dd>[<a href="#T_parent_subject" class="tref">parent subject</a>]</dd>
</dl>
</li>
</ul>
</div>
</li>

<li>If the [<a href="#T_recurse" class="tref">recurse</a>] flag is 'true', all elements that are children of the [<a href="#T_current_element" class="tref">current element</a>] are processed using
the rules described here, using a new [<a href="#T_evaluation_context" class="tref">evaluation context</a>], initialized as follows: 

<ul>
<li>If the [<a href="#T_skip_element" class="tref">skip element</a>] flag is 'true' then the new [<a href="#T_evaluation_context" class="tref">evaluation context</a>] is a copy of the current context
that was passed in to this level of processing, with the [<a href="#T_language" class="tref">language</a>] and [<a href="#T_list_of_URI_mappings" class="tref">list of URI mappings</a>] values
replaced with the local values;</li>

<li>Otherwise, the values are: 

<ul>
<li>the [<a href="#T_base" class="tref">base</a>] is set to the [<a href="#T_base" class="tref">base</a>] value of the current [<a href="#T_evaluation_context" class="tref">evaluation
context</a>];</li>

<li>the [<a href="#T_parent_subject" class="tref">parent subject</a>] is set to the value of [<a href="#T_new_subject" class="tref">new subject</a>], if non-null, <em>or</em> the value of the [<a
href="#T_parent_subject" class="tref">parent subject</a>] of the current [<a href="#T_evaluation_context" class="tref">evaluation context</a>];</li>

<li>the [<a href="#T_parent_object" class="tref">parent object</a>] is set to value of [<a href="#T_current_object_resource" class="tref">current object resource</a>], if non-null, <em>or</em> the
value of [<a href="#T_new_subject" class="tref">new subject</a>], if non-null, <em>or</em> the value of the [<a href="#T_parent_subject" class="tref">parent subject</a>] of the current [<a href= 
"#T_evaluation_context" class="tref">evaluation context</a>];</li>

<li>the [<a href="#T_list_of_URI_mappings" class="tref">list of URI mappings</a>] is set to the [<a href="#T_local_list_of_URI_mappings" class="tref">local list of URI mappings</a>];</li>

<li>the [<a href="#T_list_of_incomplete_triples" class="tref">list of incomplete triples</a>] is set to the [<a href="#T_local_list_of_incomplete_triples" class="tref">local list of incomplete
triples</a>];</li>

<li>[<a href="#T_language" class="tref">language</a>] is set to the value of [<a href="#T_current_language" class="tref">current language</a>].</li>
</ul>
</li>
</ul>
</li>
</ol>

<!--OddPage-->
<h1><a id="s_rdfaindetail" name="s_rdfaindetail">6. RDFa Processing in detail</a></h1>

<p><em>This section is normative.</em></p>

<p> This section provides an in-depth examination of the processing steps described in the previous section. It also includes examples which may help clarify some of the steps involved.</p>

<p> The key to processing is that a triple is generated whenever a predicate/object combination is detected. The actual triple generated will include a subject that may have been set previously, so
this is tracked in the current [<a href="#T_evaluation_context" class="tref">evaluation context</a>] and is called the [<a href="#T_parent_subject" class="tref">parent subject</a>]. Since the subject
will default to the current document if it hasn't been set explicitly, then a predicate/object combination is always enough to generate one or more triples.</p>

<p> The attributes for setting a predicate are <span class="aref">@rel</span>, <span class="aref">@rev</span> and <span class="aref">@property</span>, whilst the attributes for setting an object are
<span class="aref">@resource</span>, <span class="aref">@href</span>, <span class="aref">@content</span>, and <span class="aref">@src</span>. <span class="aref">@typeof</span> is unique in that it
sets <em>both</em> a predicate and an object at the same time (and also a subject when it appears in the absence of other attributes that would set a subject). Inline content might also set an
object, if <span class="aref">@content</span> is not present, but <span class="aref">@property</span> is.</p>

<h2><a id="sec_6.1." name="sec_6.1.">6.1. Changing the evaluation context</a></h2>

<h3><a id="sec_6.1.1." name="sec_6.1.1.">6.1.1. Setting the current subject</a></h3>

<p>When triples are created they will always be in relation to a subject resource which is provided either by [<a href="#T_new_subject" class="tref">new subject</a>] (if there are rules on the
current element that have set a subject) or [<a href="#T_parent_subject" class="tref">parent subject</a>], as passed in via the [<a href="#T_evaluation_context" class="tref">evaluation context</a>].
This section looks at the specific ways in which these values are set. Note that it doesn't matter how the subject is arrived at, so in this section we use the idea of the [<span class="tdef" id= 
"T_current_subject">current subject</span>] which may be <em>either</em> [<a href="#T_new_subject" class="tref">new subject</a>] or [<a href="#T_parent_subject" class="tref">parent subject</a>].</p>

<h4><a id="sec_6.1.1.1." name="sec_6.1.1.1.">6.1.1.1. The current document</a></h4>

<p>When parsing begins, the [<a href="#T_current_subject" class="tref">current subject</a>] will be the URI of the document being parsed, or a value as set by <code>base</code> according to normal
XHTML processing rules. This means that any metadata found in the <code>head</code> of the document will concern the document itself:</p>

<div class="example">
<pre>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;
    <span class='hilite'>&lt;link rel="foaf:primaryTopic" href="#bbq" /&gt;</span>
    <span class='hilite'>&lt;meta property="dc:creator" content="Jo" /&gt;</span>
  &lt;/head&gt;
  &lt;body&gt;
    ...
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>This would generate the following triples:</p>

<div class="texample">
<pre>
&lt;&gt; foaf:primaryTopic &lt;#bbq&gt; .
&lt;&gt; dc:creator "Jo" .
</pre>
</div>

<p>It is possible for the data to appear elsewhere in the document:</p>

<div class="example">
<pre>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Jo's Blog&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;<span class='hilite'>&lt;span property="dc:creator"&gt;Jo&lt;/span&gt;</span>'s blog&lt;/h1&gt;
    &lt;p&gt;
      Welcome to my blog.
    &lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>which would still generate the triple:</p>

<div class="texample">
<pre>
&lt;&gt; dc:creator "Jo" .
</pre>
</div>

<p>The value of <code>base</code> may change the initial value of [<a href="#T_current_subject" class="tref">current subject</a>]:</p>

<div class="example">
<pre>
&lt;html&gt;
  &lt;head&gt;
    <span class='hilite'>&lt;base href="http://www.example.org/jo/blog" /&gt;</span>
    &lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;
    &lt;link rel="foaf:primaryTopic" href="#bbq" /&gt;
    &lt;meta property="dc:creator" content="Jo" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    ...
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>A parser should now generate the following triples, regardless of the URL from which the XHTML document is served:</p>

<div class="texample">
<pre>
&lt;http://www.example.org/jo/blog&gt; foaf:primaryTopic &lt;#bbq&gt; .
&lt;http://www.example.org/jo/blog&gt; dc:creator "Jo" .
</pre>
</div>

<h4><a id="sec_6.1.1.2." name="sec_6.1.1.2.">6.1.1.2. Using <span class="aref">@about</span></a></h4>

<p>As processing progresses, any <span class="aref">@about</span> attributes will change the [<a href="#T_current_subject" class="tref">current subject</a>]. The value of <span class="aref">
@about</span> is a URI or a CURIE. If it is a relative URI then it needs to be resolved against the current [<a href="#T_base" class="tref">base</a>] value. To illustrate how this affects the
statements, note in this mark-up how the properties inside the <code>body</code> element become part of a new calendar event object, rather than referring to the document as they do in the head of
the document:</p>

<div class="example">
<pre>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Jo's Friends and Family Blog&lt;/title&gt;
    &lt;link rel="foaf:primaryTopic" href="#bbq" /&gt;
    &lt;meta property="dc:creator" content="Jo" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p <span class='hilite'>about="#bbq"</span> <span class='hilite'>typeof="cal:Vevent"</span>&gt;
      I'm holding
      &lt;span <span class='hilite'>property="cal:summary"</span>&gt;
        one last summer barbecue
      &lt;/span&gt;,
      on
      &lt;span <span class='hilite'>property="cal:dtstart"</span> content="2007-09-16T16:00:00-05:00" 
            datatype="xsd:dateTime"&gt;
        September 16th at 4pm
      &lt;/span&gt;.
    &lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>With this mark-up a parser should generate the following triples:</p>

<div class="texample">
<pre>
&lt;&gt; foaf:primaryTopic &lt;#bbq&gt; .
&lt;&gt; dc:creator "Jo" .
<span class='hilite'>&lt;#bbq&gt; rdf:type cal:Vevent .</span>
<span class='hilite'>&lt;#bbq&gt; cal:summary "one last summer barbecue" .</span>
<span class='hilite'>&lt;#bbq&gt; cal:dtastart "2007-09-16T16:00:00-05:00"^^xsd:dateTime .</span>
</pre>
</div>

<p>Other kinds of resources can be used to set the [<a href="#T_current_subject" class="tref">current subject</a>], not just references to web-pages. Although not advised, email addresses might be
used to represent a person:</p>

<div class="example">
<pre>
John knows
&lt;a <span class='hilite'>about="mailto:john@example.org"</span>
  rel="foaf:knows" href="mailto:sue@example.org"&gt;Sue&lt;/a&gt;.

Sue knows
&lt;a <span class='hilite'>about="mailto:sue@example.org"</span>
  rel="foaf:knows" href="mailto:jim@example.org"&gt;Jim&lt;/a&gt;.
</pre>
</div>

<p>This should generate the following triples:</p>

<div class="texample">
<pre>
&lt;mailto:john@example.org&gt; foaf:knows &lt;mailto:sue@example.org&gt; .
&lt;mailto:sue@example.org&gt; foaf:knows &lt;mailto:jim@example.org&gt; .
</pre>
</div>

<p>Similarly, authors may make statements about images:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>about="photo1.jpg"</span>&gt;
  this photo was taken by
  &lt;span property="dc:creator"&gt;Mark Birbeck&lt;/span&gt;
&lt;/div&gt;
</pre>
</div>

<p>which should generate the following triples:</p>

<div class="texample">
<pre>
&lt;photo1.jpg&gt; dc:creator "Mark Birbeck" .
</pre>
</div>

<h4><a id="sec_6.1.1.3." name="sec_6.1.1.3.">6.1.1.3. Using <span class="aref">@src</span></a></h4>

<p> If <span class="aref">@about</span> is not present, then <span class="aref">@src</span> is next in priority order, for setting the subject of a statement. A typical use would be to indicate the
licensing type of an image:</p>

<div class="example">
<pre>
&lt;img <span class='hilite'>src="photo1.jpg"</span> rel="license" resource="http://creativecommons.org/licenses/by/2.0/" /&gt;
</pre>
</div>

<p> Since there is no difference between <span class="aref">@src</span> and <span class="aref">@about</span>, then the information expressed in the last example in the section on <span class="aref">
@about</span> (the <em>creator</em> of an image), could be expressed as follows:</p>

<div class="example">
<pre>
&lt;img src="photo1.jpg"
  rel="license" resource="http://creativecommons.org/licenses/by/2.0/"
  <span class='hilite'>property="dc:creator" content="Mark Birbeck"</span>
/&gt;
</pre>
</div>

<p> Since normal chaining rules will apply, the image URL can also be used to complete hanging triples:</p>

<div class="example">
<pre>
&lt;div about="http://www.blogger.com/profile/1109404" rel="foaf:img"&gt;
  &lt;img <span class='hilite'>src="photo1.jpg"</span>
    rel="license" resource="http://creativecommons.org/licenses/by/2.0/"
    property="dc:creator" content="Mark Birbeck"
  /&gt;
&lt;/div&gt;
</pre>
</div>

<p>The complete mark-up yields three triples:</p>

<div class="texample">
<pre>
&lt;http://www.blogger.com/profile/1109404&gt; foaf:img &lt;photo1.jpg&gt; .
&lt;photo1.jpg&gt; xhv:license &lt;http://creativecommons.org/licenses/by/2.0/&gt; .
&lt;photo1.jpg&gt; dc:creator "Mark Birbeck" .
</pre>
</div>

<h4><a id="sec_6.1.1.4." name="sec_6.1.1.4.">6.1.1.4. Creating a new item with <span class="aref">@typeof</span></a></h4>

<p> Whilst <span class="aref">@about</span> explicitly creates a new context for statements, <span class="aref">@typeof</span> does so implicitly. <span class="aref">@typeof</span> works differently
to other ways of setting a predicate since the predicate is always <code>rdf:type</code>, which means that the processor only requires one attribute, the value of the type.</p>

<p>Since <span class="aref">@typeof</span> is setting the type of an item, this means that if no item exists one should automatically be created. This involves generating a new bnode, and is examined
in more detail below; it is mentioned here because the bnode used by the new item will become the subject for further statements.</p>

<p> For example, an author may wish to create mark-up for a person using the FOAF vocabulary, but without having a clear identifier for the item:</p>

<div class="example">
<pre>
&lt;div <span class='hilite'>typeof="foaf:Person"</span>&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="foaf:givenname"&gt;Albert&lt;/span&gt;
&lt;/div&gt;
</pre>
</div>

<p> This mark-up would cause a bnode to be created which has a 'type' of <code>foaf:Person</code>, as well as name and given name properties:</p>

<div class="texample">
<pre>
_:a rdf:type foaf:Person .
_:a foaf:name "Albert Einstein" .
_:a foaf:givenname "Albert" .
</pre>
</div>

<div class="explanation">A bnode is simply a unique identifier that is only available to the processor, not to any external software. By generating values internally, the processor is able to keep
track of properties for <code>_:a</code> as being distinct from <code>_:b</code>. But by not exposing these values to any external software, it is possible to have complete control over the
identifier, as well as preventing further statements being made about the item.</div>

<h4><a id="sec_6.1.1.5." name="sec_6.1.1.5.">6.1.1.5. Determining the subject with neither <span class="aref">@about</span> nor <span class="aref">@typeof</span></a></h4>

<p> As described in the previous two sections, <span class="aref">@about</span> will always take precedence and mark a new subject, but if no <span class="aref">@about</span> value is available then
<span class="aref">@typeof</span> will do the same job, although using an implied identifier, i.e., a bnode.</p>

<p> But if neither <span class="aref">@about</span> or <span class="aref">@typeof</span> are present, there are a number of ways that the subject could be arrived at. One of these is to 'inherit' the
subject from the containing statement, with the value to be inherited set either explicitly, or implicitly.</p>

<h5><a id="sec_6.1.1.5.1." name="sec_6.1.1.5.1.">6.1.1.5.1. Inheriting subject from <span class="aref">@resource</span></a></h5>

<p> The most usual way that an inherited subject might get set would be when the parent statement has an object that is a resource. Returning to the earlier example, in which the long name for
Germany was added, the following mark-up was used:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:birthPlace" resource="http://dbpedia.org/resource/Germany" /&gt;
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/Germany"
    property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> In an earlier illustration the subject and object for Germany were elided by removing the <span class="aref">@resource</span>, relying on the <span class="aref">@about</span> to set the
object:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  <span class='hilite'>&lt;div rel="dbp:birthPlace"&gt;</span>
    &lt;span about="http://dbpedia.org/resource/Germany"
      property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> but it is also possible for authors to achieve the same effect by removing the <span class="aref">@about</span> and leaving the <span class="aref">@resource</span>:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:birthPlace" <span class='hilite'>resource="http://dbpedia.org/resource/Germany"</span>&gt;
    &lt;span property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> In this situation, all statements that are 'contained' by the object resource representing Germany (the value in <span class="aref">@resource</span>) will have the same subject, making it easy
for authors to add additional statements:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:birthPlace" resource="http://dbpedia.org/resource/Germany"&gt;
    &lt;span property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;
    <span class='hilite'>&lt;span rel="dbp:capital" resource="http://dbpedia.org/resource/Berlin" /&gt;</span>
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p>Looking at the triples that a parser would generate, we can see that we actually have two groups of statements; the first group are set to refer to the <span class="aref">@about</span> that
contains them:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; foaf:name "Albert Einstein" .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:dateOfBirth "1879-03-14"^^xsd:date .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:birthPlace &lt;http://dbpedia.org/resource/Germany&gt; .
</pre>
</div>

<p>whilst the second group refer to the <span class="aref">@resource</span> that contains them:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Germany&gt;
  dbp:conventionalLongName "Federal Republic of Germany" .
&lt;http://dbpedia.org/resource/Germany&gt;
  dbp:capital &lt;http://dbpedia.org/resource/Berlin&gt; .
</pre>
</div>

<p> Note also that the same principle described here applies to <span class="aref">@src</span> and <span class="aref">@href</span>.</p>

<h5><a id="sec_6.1.1.5.2." name="sec_6.1.1.5.2.">6.1.1.5.2. Inheriting an anonymous subject</a></h5>

<p> There will be occasions when the the author wants to elide the subject and object as shown above, but is not concerned to name the resource that is common to the two statements (i.e., the object
of the first statement, which is the subject of the second). For example, to indicate that Einstein was influenced by Spinoza the following mark-up could well be used:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza" rel="dbp:influenced"&gt;
  &lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
    &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
    &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> A parser should generate the following triples:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt;
  dbp:influenced &lt;http://dbpedia.org/resource/Albert_Einstein&gt; .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; foaf:name "Albert Einstein" .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:dateOfBirth "1879-03-14"^^xsd:date .
</pre>
</div>

<p> However, an author could just as easily say that Spinoza influenced <em>something by the name of Albert Einstein, that was born on March 14th, 1879</em>:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza" rel="dbp:influenced"&gt;
  <span class='hilite'>&lt;div&gt;</span>
    &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
    &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  <span class='hilite'>&lt;/div&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> In RDF terms, the item that 'represents' Einstein is <em>anonymous</em>, since it has no URI to identify it. However, the item is given an automatically generated bnode, and it is onto this
idenfifier that all child statements are attached:</p>

<p> A parser should generate the following triples:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt; dbp:influenced _:a .
_:a foaf:name "Albert Einstein" .
_:a dbp:dateOfBirth "1879-03-14"^^xsd:date .
</pre>
</div>

<p> Note that the <code>div</code> is superfluous, and a parser should create the intermediate object even if the element is removed:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza" rel="dbp:influenced"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
&lt;/div&gt;
</pre>
</div>

<p> An alternative pattern is to <em>keep</em> the <code>div</code> and move the <span class="aref">@rel</span> onto it:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza"&gt;
  &lt;div <span class='hilite'>rel="dbp:influenced"</span>&gt;
    &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
    &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> From the point of view of the mark-up, this latter layout is to be preferred, since it draws attention to the 'hanging rel'. But from the point of view of a parser, all of these permutations need
to be supported.</p>

<h2><a id="s_Completing_Incomplete_Triples" name="s_Completing_Incomplete_Triples">6.2. Completing 'incomplete triples'</a></h2>

<p> When a new subject is calculated, it is also used to complete any incomplete triples that are pending. This situation arises when the author wants to 'chain' a number of statements together. For
example, an author could have a statement that Albert Einstein was born in Germany:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  <span class='hilite'>&lt;div rel="dbp:birthPlace" resource="http://dbpedia.org/resource/Germany" /&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> and then a further statement that the 'long name' for Germany is the <em>Federal Republic of Germany</em>:</p>

<div class="example">
<pre>
&lt;span about="http://dbpedia.org/resource/Germany"
  property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;
</pre>
</div>

<p> RDFa allows authors to insert this statement as a self-contained unit into other contexts:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:birthPlace" resource="http://dbpedia.org/resource/Germany" /&gt;
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/Germany"
    property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> But it also allows authors to avoid unnecessary repetition and to 'normalize' out duplicate identifiers, in this case the one for Germany:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  <span class='hilite'>&lt;div rel="dbp:birthPlace"&gt;</span>
    &lt;span about="http://dbpedia.org/resource/Germany"
      property="dbp:conventionalLongName"&gt;Federal Republic of Germany&lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> When this happens the <span class="aref">@rel</span> for 'birth place' is regarded as a 'hanging rel' because it has not yet generated any triples, but these 'incomplete triples' are completed by
the <span class="aref">@about</span> that appears on the next line. The first step is therefore to store the two parts of the triple that the parser <em>does</em> have, but without an object:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:birthPlace <span class='hilite'>?</span> .
</pre>
</div>

<p> Then as processing continues, the parser encounters the subject of the statement about the long name for Germany, and this is used in two ways. First it is used to complete the 'incomplete
triple':</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:birthPlace <span class='hilite'>&lt;http://dbpedia.org/resource/Germany&gt;</span> .
</pre>
</div>

<p>and second it is used to generate its own triple:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Germany&gt; dbp:conventionalLongName "Federal Republic of Germany" .
</pre>
</div>

<p> Note that each occurrence of <span class="aref">@about</span> will complete any incomplete triples. For example, to mark up the fact that Albert Einstein had both German and American citizenship,
an author need only specify one <span class="aref">@rel</span> value that is then used with multiple <span class="aref">@about</span> values:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Albert_Einstein" rel="dbp:citizenship"&gt;
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/Germany" /&gt;</span>
  <span class='hilite'>&lt;span about="http://dbpedia.org/resource/United_States" /&gt;</span>
&lt;/div&gt;
</pre>
</div>

<p> In this example there is one incomplete triple:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; dbp:citizenship <span class='hilite'>?</span> .
</pre>
</div>

<p> When the processor meets each of the <span class="aref">@about</span> values, this triple is completed, giving:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  dbp:citizenship <span class='hilite'>&lt;http://dbpedia.org/resource/Germany&gt;</span> .
&lt;http://dbpedia.org/resource/Albert_Einstein&gt;
  dbp:citizenship <span class='hilite'>&lt;http://dbpedia.org/resource/United_States&gt;</span> .
</pre>
</div>

<p> These examples show how <span class="aref">@about</span> completes triples, but there are other situations that can have the same effect. For example, when <span class="aref">@typeof</span>
creates a new bnode (as described above), that will be used to complete any 'incomplete triples'. To illustrate, to indicate that Spinoza influenced both Einstein and Schopenhauer, the following
mark-up could be used:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza"&gt;
  &lt;div rel="dbp:influenced"&gt;
    &lt;div <span class='hilite'>typeof="foaf:Person"</span>&gt;
      &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
      &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
    &lt;/div&gt;
    &lt;div <span class='hilite'>typeof="foaf:Person"</span>&gt;
      &lt;span property="foaf:name"&gt;Arthur Schopenhauer&lt;/span&gt;
      &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1788-02-22&lt;/span&gt;
    &lt;/div&gt;          
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p>First the following incomplete triple is stored:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt; dbp:influenced <span class='hilite'>?</span> .
</pre>
</div>

<p> Then when the parser processes the two occurences of <span class="aref">@typeof</span>, each generates a bnode, which is used to both complete the 'incomplete triple', and to set the subject for
further statements:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza"&gt; dbp:influenced <span class='hilite'>_:a</span> .
<span class='hilite'>_:a</span> rdf:type foaf:Person .
<span class='hilite'>_:a</span> foaf:name "Albert Einstein" .
<span class='hilite'>_:a</span> dbp:dateOfBirth "1879-03-14"^^xsd:date .
&lt;http://dbpedia.org/resource/Baruch_Spinoza"&gt; dbp:influenced <span class='hilite'>_:b</span> .
<span class='hilite'>_:b</span> rdf:type foaf:Person .
<span class='hilite'>_:b</span> foaf:name "Arthur Schopenhauer" .
<span class='hilite'>_:b</span> dbp:dateOfBirth "1788-02-22"^^xsd:date .
</pre>
</div>

<p> Triples are also 'completed' if any one of <span class="aref">@property</span>, <span class="aref">@rel</span> or <span class="aref">@rev</span> are present. However, unlike the situation when
<span class="aref">@about</span> or <span class="aref">@typeof</span> are present, all predicates are attached to one bnode:</p>

<div class="example">
<pre>
&lt;div about="http://dbpedia.org/resource/Baruch_Spinoza" rel="dbp:influenced"&gt;
  &lt;span property="foaf:name"&gt;Albert Einstein&lt;/span&gt;
  &lt;span property="dbp:dateOfBirth" datatype="xsd:date"&gt;1879-03-14&lt;/span&gt;
  &lt;div rel="dbp:citizenship"&gt;
    &lt;span about="http://dbpedia.org/resource/Germany" /&gt;
    &lt;span about="http://dbpedia.org/resource/United_States" /&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
</div>

<p> This example has two 'hanging rels', and so two situations when 'incomplete triples' will be created. Processing would proceed as follows; first an incomplete triple is stored:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt; dbp:influenced <span class='hilite'>?</span> .
</pre>
</div>

<p> Next, the parser processes the predicate values for <code>foaf:name</code>, <code>dbp:dateOfBirth</code> and <code>dbp:citizenship</code>, but note that only the first needs to 'complete' the
'hanging rel'. So processing <code>foaf:name</code> generates two triples:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt; dbp:influenced <span class='hilite'>_:a</span> .
<span class='hilite'>_:a</span> foaf:name "Alber Einstein" .
</pre>
</div>

<p> but processing <code>dbp:dateOfBirth</code> generates only one:</p>

<div class="texample">
<pre>
<span class='hilite'>_:a</span> dbp:dateOfBirth "1879-03-14"^^xsd:date .
</pre>
</div>

<p>Processing <code>dbp:citizenship</code> also uses the same bnode, but note that it also generates its own 'incomplete triple':</p>

<div class="texample">
<pre>
  _:a dbp:citizenship <span class='hilite'>?</span> .
</pre>
</div>

<p>As before, the two occurrences of <span class="aref">@about</span> complete the 'incomplete triple', once each:</p>

<div class="texample">
<pre>
_:a dbp:citizenship <span class='hilite'>&lt;http://dbpedia.org/resource/Germany&gt;</span> .
_:a dbp:citizenship <span class='hilite'>&lt;http://dbpedia.org/resource/United_States&gt;</span> .
</pre>
</div>

<p> The entire set of triples that a parser should generate are as follows:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Baruch_Spinoza&gt; dbp:influenced <span class='hilite'>_:a</span> .
<span class='hilite'>_:a</span> foaf:name "Alber Einstein" .
<span class='hilite'>_:a</span> dbp:dateOfBirth "1879-03-14"^^xsd:date .
<span class='hilite'>_:a</span> dbp:citizenship &lt;http://dbpedia.org/resource/Germany&gt; .
<span class='hilite'>_:a</span> dbp:citizenship &lt;http://dbpedia.org/resource/United_States&gt; .
</pre>
</div>

<h2><a id="sec_6.3." name="sec_6.3.">6.3. Object resolution</a></h2>

<p> Although objects have been discussed in the previous sections, as part of the explanation of subject resolution, chaining, evaluation contexts, and so on, this section will look at objects in
more detail.</p>

<p>There are two types of object, [<a href="#T_URI_resource" class="tref">URI resource</a>]s and [<a href="#T_literal" class="tref">literal</a>]s.</p>

<p>A [<a href="#T_literal" class="tref">literal</a>] object can be set by using <span class="aref">@property</span> to express a [<a href="#T_predicate" class="tref">predicate</a>], and then using
either <span class="aref">@content</span>, or the inline text of the element that <span class="aref">@property</span> is on. <em>Note that the use of <span class="aref">@content</span> prohibits the
inclusion of rich markup in your literal. If the inline content of an element accurately represents the object, then documents should rely upon that rather than duplicating that data using the <span
class="aref">@content</span>.</em></p>

<p>A [<span class="tdef" id="T_URI_resource">URI resource</span>] object can be set using one of <span class="aref">@rel</span> or <span class="aref">@rev</span> to express a [<a href="#T_predicate"
class="tref">predicate</a>], and then <em>either</em> using one of <span class="aref">@href</span>, <span class="aref">@resource</span> or <span class="aref">@src</span> to provide an object resource
explicitly, <em>or</em> using the chaining techniques described above to obtain an object from a nested subject, or from a bnode.</p>

<h3><a id="sec_6.3.1." name="sec_6.3.1.">6.3.1. Literal object resolution</a></h3>

<p> An [<span class="tdef" id="T_object_literal">object literal</span>] will be generated when <span class="aref">@property</span> is present. <span class="aref">@property</span> provides the
predicate, and the following sections describe how the actual literal to be generated is determined.</p>

<h4><a id="sec_6.3.1.1." name="sec_6.3.1.1.">6.3.1.1. Plain Literals</a></h4>

<p><span class="aref">@content</span> can be used to indicate a [<a href="#T_plain_literal" class="tref">plain literal</a>], as follows:</p>

<div class="example">
<pre>
&lt;meta about="http://internet-apps.blogspot.com/"
      property="dc:creator" <span class='hilite'>content="Mark Birbeck"</span> /&gt;
</pre>
</div>

<p>The [<a href="#T_plain_literal" class="tref">plain literal</a>] can also be specified by using the content of the element:</p>

<div class="example">
<pre>
&lt;span about="http://internet-apps.blogspot.com/"
      property="dc:creator"&gt;<span class='hilite'>Mark Birbeck</span>&lt;/span&gt;
</pre>
</div>

<p> Both of these examples give the following triple:</p>

<div class="texample">
<pre>
&lt;http://internet-apps.blogspot.com/&gt; dc:creator "Mark Birbeck" .
</pre>
</div>

<p>The value of <span class="aref">@content</span> is given precedence over any element content, so the following would give exactly the same triple:</p>

<div class="example">
<pre>
&lt;span about="http://internet-apps.blogspot.com/"
      property="dc:creator" <span class='hilite'>content="Mark Birbeck"</span>&gt;John Doe&lt;/span&gt;
</pre>
</div>

<h5><a id="sec_6.3.1.1.1." name="sec_6.3.1.1.1.">6.3.1.1.1. Language Tags</a></h5>

<p>RDF allows [<a href="#T_plain_literal" class="tref">plain literal</a>]s to have a language tag, as illustrated by the following example from <a href="#RDFTESTS-RDFMS-XMLLANG-TEST006">
[RDFTESTS-RDFMS-XMLLANG-TEST006]</a>:</p>

<div class="texample">
<pre>
&lt;http://example.org/node&gt; 
  &lt;http://example.org/property&gt; "chat"<span class='hilite'>@fr</span> .
</pre>
</div>

<p>In RDFa the XML language attribute <span class="aref">@xml:lang</span> is used to add this information, whether the plain literal is designated by <span class="aref">@content</span>, or by the
inline text of the element:</p>

<div class="example">
<pre>
&lt;meta about="http://example.org/node"
  property="ex:property" <span class='hilite'>xml:lang="fr"</span> content="chat" /&gt;
</pre>
</div>

<p>Note that the language value can be inherited as defined in [<a class="nref" href="#ref_XML-LANG">XML-LANG</a>], so the following syntax will give the same triple as above:</p>

<div class="example">
<pre>
&lt;html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ex="http://www.example.com/ns/" <span class='hilite'>xml:lang="fr"</span>&gt;
  &lt;head&gt;
    &lt;title xml:lang="en"&gt;Example&lt;/title&gt;
    &lt;meta about="http://example.org/node"
      property="ex:property" content="chat" /&gt;
  &lt;/head&gt;
  ...
&lt;/html&gt;
</pre>
</div>

<h4><a id="sec_6.3.1.2." name="sec_6.3.1.2.">6.3.1.2. Typed literals</a></h4>

<p>Literals can be given a data type using <span class="aref">@datatype</span>.</p>

<p>This can be represented in RDFa as follows:</p>

<div class="example">
<pre>
&lt;span property="cal:dtstart" content="2007-09-16T16:00:00-05:00" 
      <span class='hilite'>datatype="xsd:dateTime"</span>&gt;
  September 16th at 4pm
&lt;/span&gt;.
</pre>
</div>

<p>The triples that this mark-up generates include the datatype after the literal:</p>

<div class="texample">
<pre>
&lt;&gt; cal:dtstart "2007-09-16T16:00:00-05:00"^^<span class='hilite'>xsd:dateTime</span> .
</pre>
</div>

<h4><a id="s_xml_literals" name="s_xml_literals">6.3.1.3. XML Literals</a></h4>

<p>XML documents cannot contain XML mark-up in their attributes, which means it is not possible to represent XML within <span class="aref">@content</span> (the following would cause an XML parser to
generate an error):</p>

<div class="example">
<pre>
&lt;head&gt;
  &lt;meta property="dc:title"
    <span class='hilite'>content="E = mc&lt;sup&gt;2&lt;/sup&gt;: The Most Urgent Problem of Our Time"</span> /&gt;
&lt;/head&gt;
</pre>
</div>

<p>It does not help to escape the content, since the output would simply be a string of text containing numerous ampersands:</p>

<div class="texample">
<pre>
&lt;&gt; dc:title "E = mc<span class='hilite'>&amp;lt;sup&amp;gt;2&amp;amp;lt;/sup&amp;gt;</span>: The Most Urgent Problem of Our Time" .
</pre>
</div>

<p>RDFa therefore supports the use of normal mark-up to express XML literals, by using <span class="aref">@datatype</span>:</p>

<div class="example">
<pre>
&lt;h2 property="dc:title" datatype="rdf:XMLLiteral"&gt;
  <span class='hilite'>E = mc&lt;sup&gt;2&lt;/sup&gt;: The Most Urgent Problem of Our Time</span>
&lt;/h2&gt;
</pre>
</div>

<p>This would generate the following triple, with the XML preserved in the literal:</p>

<div class="texample">
<pre>
&lt;&gt; dc:title "E = mc&lt;sup&gt;2&lt;/sup&gt;: The Most Urgent Problem of Our Time"^^rdf:XMLLiteral .
</pre>
</div>

<p> Note that this requires that a URI mapping for the prefix <code>rdf</code> has been defined. To make authoring easier, if there are child elements and no <span class="aref">@datatype</span>
attribute, then the effect is the same as if <span class="aref">@datatype</span> have been explicitly set to <code>rdf:XMLLiteral</code>:</p>

<div class="example">
<pre>
&lt;h2 property="dc:title"&gt;
  E = mc&lt;sup&gt;2&lt;/sup&gt;: The Most Urgent Problem of Our Time
&lt;/h2&gt;
</pre>
</div>

<p> In the examples given here the <code>sup</code> element is actually part of the meaning of the literal, but there will be situations where the extra mark-up means nothing, and can therefore be
ignored. In this situation an empty <span class="aref">@datatype</span> value can be used to override the XML literal behaviour:</p>

<div class="example">
<pre>
&lt;p&gt;You searched for &lt;strong&gt;Einstein&lt;/strong&gt;:&lt;/p&gt;
&lt;p about="http://dbpedia.org/resource/Albert_Einstein"&gt;
  &lt;span property="foaf:name" <span class='hilite'>datatype=""</span>&gt;Albert &lt;strong&gt;Einstein&lt;/strong&gt;&lt;/span&gt;
  (b. March 14, 1879, d. April 18, 1955) was a German-born theoretical physicist.
&lt;/p&gt;
</pre>
</div>

<p>Although the rendering of this page has highlighted the term the user searched for, setting <span class="aref">@datatype</span> to nothing ensures that the data is interpreted as a plain literal,
giving the following triples:</p>

<div class="texample">
<pre>
&lt;http://dbpedia.org/resource/Albert_Einstein&gt; foaf:name <span class='hilite'>"Albert Einstein"</span> .
</pre>
</div>

<p>Note that the value of this [<a href="#s_xml_literals" class="tref">XML Literal</a>] is the exclusive canonicalization of the RDFa element's value.</p>

<p> <span class="mustnot">Although the RDFa processing model requires visiting each element in the tree, if the processor meets an [<a href="#s_xml_literals" class="tref">XML literal</a>] then it
MUST NOT process any further down the tree.</span> This is to prevent triples being generated from mark-up that is not actually in the hierarchy. For example, we might want to set the title of
something to some XHTML that itself includes RDFa:</p>

<div class="example">
<pre>
&lt;h2 <span class='hilite'>property="dc:title"</span>&gt;
  Example 3: &lt;span about="#bbq" typeof="cal:Vevent"&gt;...&lt;/span&gt;
&lt;/h2&gt;
</pre>
</div>

<p> In this example the nested RDFa should not be parsed. This effectively means that the presence of <span class="aref">@property</span> without <span class="aref">@content</span> will inhibit any
further processing, so authors should watch out for stray attributes, especially if they find that they are getting fewer triples than they had expected.</p>

<h3><a id="sec_6.3.2." name="sec_6.3.2.">6.3.2. URI object resolution</a></h3>

<p> Most of the rules governing the processing of objects that are resources are to be found in the processing descriptions given above, since they are important for establishing the subject. This
section aims to highlight general concepts, and anything that might have been missed.</p>

<p> One or more [<span class="tdef" id="T_URI_object">URI object</span>]s are needed when <span class="aref">@rel</span> or <span class="aref">@rev</span> is present. Each attribute will cause
triples to be generated when used with <span class="aref">@href</span>, <span class="aref">@resource</span> or <span class="aref">@src</span>, or with the subject value of any nested statement if
none of these attributes are present.</p>

<p> <span class="aref">@rel</span> and <span class="aref">@rev</span> are essentially the inverse of each other; whilst <span class="aref">@rel</span> establishes a relationship between the [<a href= 
"#T_current_subject" class="tref">current subject</a>] as subject, and the [<a href="#T_current_object_resource" class="tref">current object resource</a>] as the object, <span class="aref">
@rev</span> does the exact opposite, and uses the [<a href="#T_current_object_resource" class="tref">current object resource</a>] as the subject, and the [<a href="#T_current_subject" class=
"tref">current subject</a>] as the object.</p>

<h4><a id="sec_6.3.2.1." name="sec_6.3.2.1.">6.3.2.1. Using <span class="aref">@resource</span> to set the object</a></h4>

<p>RDFa provides the <span class="aref">@resource</span> attribute as a way to set the object of statements. This is particularly useful when referring to resources that are not themselves navigable
links:</p>

<div class="example">
<pre>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;On Crime and Punishment&lt;/title&gt;
    &lt;base href="http://www.example.com/candp.xhtml" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;blockquote about="#q1" rel="dc:source" <span class='hilite'>resource="urn:ISBN:0140449132"</span> &gt;
      &lt;p id="q1"&gt;
        Rodion Romanovitch! My dear friend! If you go on in this way
        you will go mad, I am positive! Drink, pray, if only a few drops!
      &lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
</div>

<p>The <code>blockquote</code> element generates the following triple:</p>

<div class="texample">
<pre>
&lt;http://www.example.com/candp.xhtml#q1&gt;
  &lt;http://purl.org/dc/elements/1.1/source&gt; &lt;urn:ISBN:0140449132&gt; .
</pre>
</div>

<h4><a id="sec_6.3.2.2." name="sec_6.3.2.2.">6.3.2.2. Using <span class="aref">@href</span></a></h4>

<p> If no <span class="aref">@resource</span> is present, then <span class="aref">@href</span> is next in priority order, for setting the object.</p>

<p>When a predicate has been expressed using <span class="aref">@rel</span>, the <span class="aref">@href</span> on the [RDFa statement]'s element is used to identify the object with a [URI
reference]. Its type is a URI:</p>

<div class="example">
<pre>
&lt;link about="mailto:john@example.org"
      <span class='hilite'>rel="foaf:knows" href="mailto:sue@example.org"</span> /&gt;
</pre>
</div>

<p>It's also possible to use both <span class="aref">@rel</span> and <span class="aref">@rev</span> at the same time on an element. This is particularly useful when two things stand in two different
relationships with each other, for example when a picture is taken <em>by</em> Mark, but that picture also <em>depicts</em> him:</p>

<div class="example">
<pre>
&lt;img src="photo1.jpg" <span class='hilite'>rel="dc:creator" rev="foaf:img"</span>
   href="http://www.blogger.com/profile/1109404" /&gt;
</pre>
</div>

<p>which then yields two triples:</p>

<div class="texample">
<pre>
&lt;photo1.jpg&gt; 
  dc:creator &lt;http://www.blogger.com/profile/1109404&gt; .
&lt;http://www.blogger.com/profile/1109404&gt; 
  foaf:img &lt;photo1.jpg&gt; .
</pre>
</div>

<h4><a id="sec_6.3.2.3." name="sec_6.3.2.3.">6.3.2.3. Incomplete triples</a></h4>

<p>When a triple predicate has been expressed using <span class="aref">@rel</span> or <span class="aref">@rev</span>, but no <span class="aref">@href</span>, <span class="aref">@src</span>, or <span
class="aref">@resource</span> exists on the same element, there is a 'hanging rel'. This causes the current subject and all possible predicates (with an indicator of whether they are 'forwards, i.e.,
<span class="aref">@rel</span> values, or not, i.e., <span class="aref">@rev</span> values), to be stored as 'incomplete triples' pending discovery of a subject that could be used to 'complete' those
triples.</p>

<p>This process is described in more detail in <a href="#s_Completing_Incomplete_Triples">Completing 'Incomplete Triples'</a>.</p>

<!--OddPage-->
<h1><a id="s_curies" name="s_curies">7. CURIE Syntax Definition</a></h1>

<p><i>This section is normative.</i></p>

<p>The key component of RDF is the URI, but these are usually long and unwieldy. RDFa therefore supports a mechanism by which URIs can be abbreviated, called 'compact URIs' or simply, CURIEs.</p>

<p>A CURIE is comprised of two components, a <em>prefix</em> and a <em>reference</em>. The prefix is separated from the reference by a colon (<code>:</code>). In general use it is possible to omit
the prefix, and so create a CURIE that makes use of the 'default prefix' mapping; in RDFa the 'default prefix' mapping is <code>http://www.w3.org/1999/xhtml/vocab#</code>. It's also usually possible
to omit both the prefix <em>and</em> the colon, and so create a CURIE that contains just a reference which makes use of the 'no prefix' mapping. However, RDFa does not define a 'no prefix' mapping,
meaning that this form of CURIE is not supported.</p>

<p> The general syntax of a CURIE can be summarised as follows:</p>

<pre>
<span id="P_curie">curie       :=   [ [ prefix ] ':' ] reference</span>

<span id="P_prefix">prefix</span>      :=   <a href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName">NCName</a>

<span id="P_reference">reference</span>   :=   irelative-ref (as defined in [<a class="nref" href="#ref_IRI">IRI</a>])
</pre>

<p> In some situations an attribute will allow either a CURIE, or a normal URI. Since it is difficult to distinguish between CURIEs and URIs, the CURIE syntax adds the notion of a [<span class="tdef"
id="T_safe_CURIE">safe CURIE</span>]. The syntax is simply to surround the CURIE with square brackets:</p>

<pre>
<span id="P_safe_curie">safe_curie  :=   '[' curie ']'</span>
</pre>

<p> In normal evaluation of CURIEs the following context information would need to be provided:</p>

<ul>
<li>a set of mappings from prefixes to URIs;</li>

<li>a mapping to use with the default prefix (for example, <code>:p</code>);</li>

<li>a mapping to use when there is no prefix (for example, <code>p</code>);</li>

<li>a mapping to use with the '_' prefix, which is used to generate unique identifiers (for example, <code>_:p</code>).</li>
</ul>

<p> In RDFa these values are defined as follows:</p>

<ul>
<li>the <strong>set of mappings from prefixes to URIs</strong> is provided by the current in-scope prefix declarations of the [<a href="#T_current_element" class="tref">current element</a>] during
parsing;</li>

<li>the <strong>mapping to use with the default prefix</strong> is the current default prefix mapping;</li>

<li>the <strong>mapping to use when there is no prefix</strong> is not defined, which effectively prohibits the use of CURIEs that do not contain a colon;</li>

<li>the <strong>mapping to use with the '_' prefix</strong>, is not explicitly stated, but since it is used to generate [<a href="#T_bnode" class="tref">bnode</a>]s, its implementation needs to be
compatible with the RDF definition.</li>
</ul>

<p><span class="must">A CURIE is a representation of a full URI. This URI is obtained by taking the currently in-scope mapping that is associated with <code>prefix</code>, and concatenating it with
the <code>reference</code>. The resulting URI MUST be a syntactically valid IRI [<a class="nref" href="#ref_IRI">IRI</a>]</span>. For a more detailed explanation see <a href="#s_curieprocessing">
CURIE and URI Processing</a>. Note that while the <em>lexical space</em> of a CURIE is as defined in <a href="#P_curie">curie</a> above, the <em>value space</em> is the set of IRIs.</p>

<!--OddPage-->
<h1><a id="s_xhtmlrdfa" name="s_xhtmlrdfa">8. XHTML+RDFa Definition</a></h1>

<p><em>This section is normative.</em></p>

<p>The XHTML+RDFa document type is a fully functional document type with rich semantics. It is a superset of [<a class="nref" href="#ref_XHTML11">XHTML11</a>].</p>

<p>The XHTML+RDFa 1.0 document type is made up of the following XHTML modules. The elements, attributes, and content models associated with these modules are defined in "XHTML Modularization" [<a
class="nref" href="#ref_XHTMLMOD">XHTMLMOD</a>]. The elements are listed here for information purposes, but the definitions in "XHTML Modularization" should be considered authoritative. In the
on-line version of this document, the module names in the list below link into the definitions of the modules within the current versions of "XHTML Modularization".</p>

<dl>
<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_structuremodule">Structure Module</a></dt>

<dd><code>body, head, html, title</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_textmodule">Text Module</a></dt>

<dd><code>abbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_hypertextmodule">Hypertext Module</a></dt>

<dd><code>a</code>, and <span class="aref">@href</span> is available on all elements.</dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_listmodule">List Module</a></dt>

<dd><code>dl, dt, dd, ol, ul, li</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_objectmodule">Object Module</a></dt>

<dd><code>object, param</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_presentationmodule">Presentation Module</a></dt>

<dd><code>b, big, hr, i, small, sub, sup, tt</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_editmodule">Edit Module</a></dt>

<dd><code>del, ins</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_bdomodule">Bidirectional Text Module</a></dt>

<dd><code>bdo</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_extformsmodule">Forms Module</a></dt>

<dd><code>button, fieldset, form, input, label, legend, select, optgroup, option, textarea</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule">Table Module</a></dt>

<dd><code>caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_imagemodule">Image Module</a></dt>

<dd><code>img</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_imapmodule">Client-side Image Map Module</a></dt>

<dd><code>area, map</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_servermapmodule">Server-side Image Map Module</a></dt>

<dd>Attribute <code>ismap</code> on <code>img</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_intrinsiceventsmodule">Intrinsic Events Module</a></dt>

<dd>Events attributes</dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_metamodule">Metainformation Module</a></dt>

<dd><code>meta</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_scriptmodule">Scripting Module</a></dt>

<dd><code>noscript, script</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_stylemodule">Stylesheet Module</a></dt>

<dd><code>style</code> element</dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_styleattributemodule">Style Attribute Module</a> <em>Deprecated</em></dt>

<dd><span class="aref">@style</span></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_targetmodule">Target Module</a></dt>

<dd><span class="aref">@target</span></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_linkmodule">Link Module</a></dt>

<dd><code>link</code></dd>

<dt><a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_basemodule">Base Module</a></dt>

<dd><code>base</code></dd>

<dt><a href="#s_metaAttributes">Metainformation Attributes Module</a></dt>

<dd><span class="aref">@about</span>, <span class="aref">@content</span>, <span class="aref">@datatype</span>, <span class="aref">@typeof</span>, <span class="aref">@property</span>, <span class=
"aref">@rel</span>, <span class="aref">@resource</span>, <span class="aref">@rev</span></dd>
</dl>

<p>XHTML+RDFa also uses the Ruby Annotation module as defined in [<a class="nref" href="#ref_RUBY">RUBY</a>]:</p>

<dl>
<dt>Ruby Annotation Module</dt>

<dd><code>ruby, rbc, rtc, rb, rt, rp</code></dd>
</dl>

<p>There are no additional definitions required by this document type. An implementation of this document type as an <!--
XML Schema is defined in
<a href="xhtml11_schema.html#a_xhtml11_schema">Appendix D</a>, and as an
--> XML DTD is defined in <a href="#a_xhtmlrdfa_dtd">Appendix A</a>.</p>

<!--OddPage-->
<h1><a id="s_metaAttributes" name="s_metaAttributes">9. Metainformation Attributes Module</a></h1>

<p>This section is <em>normative</em>.</p>

<p>The Metainformation Attributes Module defines the <code>Metainformation</code> attribute collection. This collection allows elements to be annotated with metadata throughout an XHTML-family
document. When this module is included in a markup language, this collection is added to the <code>Common</code> attribute collection as defined in [<a class="nref" href=
"#ref_XHTMLMOD">XHTMLMOD</a>].</p>

<h2><a id="sec_9.1." name="sec_9.1.">9.1. Datatypes</a></h2>

<p>Some of the attributes in this section use the following datatypes:</p>

<table border='1' summary='Custom data types'>
<tr>
<th>Data type</th>
<th>Description</th>
</tr>

<tr>
<td id="dt_curie">CURIE</td>
<td>A Compact URI or <a href="#P_curie">curie</a>.</td>
</tr>

<tr>
<td id="dt_curies">CURIEs</td>
<td>A whitespace separated list of <span class="datatype"><a href="#dt_curie">CURIE</a></span>s.</td>
</tr>

<tr>
<td id="dt_uriorsafecurie">URIorSafeCURIE</td>
<td>A <span class="datatype"><a href="http://www.w3.org/TR/xhtml-modularization/abstraction.html#dt_URI">URI</a></span> or <a href="#P_safe_curie">safe_curie</a>.</td>
</tr>
</table>

<p>Note that a specification of these data types in XML DTD and XML Schema is available in <a href="#s_datatypes">Appendix B</a>.</p>

<h2><a id="col_Metainformation" name="col_Metainformation">9.2. Metainformation Attributes Collection</a></h2>

<p>The following attributes are included in the attribute collection, and take values in the associated datatype:</p>

<table class="moduledef" border="1" summary="Metainformation Attribute Collection">
<thead>
<tr>
<th>Attributes</th>
<th>Notes</th>
</tr>
</thead>

<tbody>
<tr>
<td><span id="A_about">about</span> (<span class="datatype"><a href="#dt_uriorsafecurie">URIorSafeCURIE</a></span>)</td>
<td>&#160;</td>
</tr>

<tr>
<td><span id="A_content">content</span> (<span class="datatype"><a href="http://www.w3.org/TR/xhtml-modularization/abstraction.html#dt_CDATA">CDATA</a></span>)</td>
<td>&#160;</td>
</tr>

<tr>
<td><span id="A_datatype">datatype</span> (<span class="datatype"><a href="#dt_curie">CURIE</a></span>)</td>
<td>If not specified, then the default value is <code>string</code> as defined in [<a class="nref" href="#ref_XMLSCHEMA">XMLSCHEMA</a>].</td>
</tr>

<tr>
<td><span id="A_typeof">typeof</span> (<span class="datatype"><a href="#dt_curies">CURIEs</a></span>)</td>
<td>&#160;</td>
</tr>

<tr>
<td><span id="A_property">property</span> (<span class="datatype"><a href="#dt_curies">CURIEs</a></span>)</td>
<td>&#160;</td>
</tr>

<tr>
<td><span id="A_rel">rel</span> (reserved word | <span class="datatype"><a href="#dt_curie">CURIE</a></span>)+</td>
<td>See the reserved values list in <a href="#relValues">@rel/@rev Attribute Values</a></td>
</tr>

<tr>
<td><span id="A_resource">resource</span> (<span class="datatype"><a href="#dt_uriorsafecurie">URIorSafeCURIE</a></span>)</td>
<td>&#160;</td>
</tr>

<tr>
<td><span id="A_rev">rev</span> (reserved word | <span class="datatype"><a href="#dt_curie">CURIE</a></span>)+</td>
<td>See the reserved values list in <a href="#relValues">@rel/@rev attribute values</a></td>
</tr>
</tbody>
</table>

<p>An implementation of this module can be found in <a href="#a_xhtmlrdfa_dtd">Appendix A</a>.</p>

<h2><a id="relValues" name="relValues">9.3. @rel/@rev attribute values</a></h2>

<p>The list of reserved values for <span class="aref">@rel</span> and <span class="aref">@rev</span> are:</p>

<dl>
<dt>alternate</dt>

<dd>Designates alternate versions for a resource.</dd>

<dt>appendix</dt>

<dd>Refers to a resource serving as an appendix in a collection.</dd>

<dt>bookmark</dt>

<dd>Refers to a bookmark. A bookmark is a link to a key entry point within an extended document. The <span class="aref">@title</span> attribute may be used, for example, to label the bookmark. Note
that several bookmarks may be defined for a document.</dd>

<dt>cite</dt>

<dd>
<p>Refers to a resource that defines a citation. In the following example, the <code>cite</code> is used to reference the book from which the quotation is taken:</p>

<div class="example">
<p>cite as book reference</p>

<pre>
As Gandalf the White said in 
&lt;span <span class='hilite'>rel="cite"</span> resource="http://www.example.com/books/the_two_towers"&gt;
    The Two Towers
&lt;/span&gt;,
&lt;quote xml:lang="en"&gt;"The hospitality of 
your hall is somewhat lessened of late, Theoden King."&lt;/quote&gt;
</pre>
</div>

<p>which would generate the following triples:</p>

<div class="texample">
<pre>
&lt;&gt; xhv:cite &lt;http://www.example.com/books/the_two_towers&gt; .
</pre>
</div>

<code>cite</code> is also useful for referencing specifications: 

<div class="example">
<p>cite to reference another specification</p>

<pre>
More information can be found in 
&lt;span <span class='hilite'>rel="cite"</span> resource="http://www.w3.org/TR/REC-xml"&gt;[XML]&lt;/cite&gt;.
</pre>
</div>

<p>which would generate the following triples:</p>

<div class="texample">
<pre>
&lt;&gt; xhv:cite &lt;http://www.w3.org/TR/REC-xml&gt; .
</pre>
</div>
</dd>

<dt>chapter</dt>

<dd>Refers to a resource serving as a chapter in a collection.</dd>

<dt>contents</dt>

<dd>Refers to a resource serving as a table of contents.</dd>

<dt>copyright</dt>

<dd>Refers to a copyright statement for the resource.</dd>

<dt>first</dt>

<dd>Refers to the first item in a collection (see also start and top).</dd>

<dt>glossary</dt>

<dd>Refers to a resource providing a glossary of terms.</dd>

<dt>help</dt>

<dd>Refers to a resource offering help (more information, links to other sources of information, etc.)</dd>

<dt>icon</dt>

<dd>Refers to a resource that represents an icon.</dd>

<dt>index</dt>

<dd>Refers to a resource providing an index.</dd>

<dt>last</dt>

<dd>Refers to the last resource in a collection of resources.</dd>

<dt>license</dt>

<dd>Refers to a resource that defines the license associated with a resource.</dd>

<dt>meta</dt>

<dd>Refers to a resource that provides metadata, for instance in RDF.</dd>

<dt>next</dt>

<dd>Refers to the next resource (after the current one) in an ordered collection.</dd>

<dt>p3pv1</dt>

<dd>Refers to a P3P Policy Reference File. See [<a class="nref" href="#ref_P3P">P3P</a>].</dd>

<dt>prev</dt>

<dd>Refers to the previous resource (before the current one) in an ordered collection.</dd>

<dt>role</dt>

<dd>Indicates the purpose of the resource. For some possible values, see [<a class="nref" href="#ref_XHTMLVOCAB">XHTMLVOCAB</a>].</dd>

<dt>section</dt>

<dd>Refers to a resource serving as a section in a collection.</dd>

<dt>stylesheet</dt>

<dd>Refers to a resource acting as a stylesheet for a resource.</dd>

<dt>subsection</dt>

<dd>Refers to a resource serving as a subsection in a collection.</dd>

<dt>start</dt>

<dd>Refers to the first resource in a collection of resources. A typical use case might be a collection of chapters in a book.</dd>

<dt>top</dt>

<dd>Synonym for start.</dd>

<dt>up</dt>

<dd>Refers to the resource "above" in a hierarchically structured set.</dd>
</dl>

<!--OddPage-->
<h1><a id="a_xhtmlrdfa_dtd" name="a_xhtmlrdfa_dtd">A. XHTML+RDFa DTD</a></h1>

<p>This appendix is <em>normative</em>.</p>

<p>This appendix includes an implementation of the XHTML+RDFa 1.0 language as an XML DTD. It is implemented by combining the XHTML 1.1 DTD with the XHTML Metainformation Attribute Module. This is
done by using a content model module, and then a driver module. There are direct links to the various files, and the files are also contained in the "Gzip'd TAR" and "Zip" archives linked to at the
top of this document. Please note that the files targeted by the "latest version" links may change slowly over time. See the <a href="http://www.w3.org/MarkUp/"><acronym title="World Wide Web 
Consortium">W3C</acronym> <acronym title="HyperText Markup Language">XHTML2</acronym> Working Group</a> home page for more information.</p>

<h2><a id="a_DTD_xhtml_metaAttributes_module" name="a_DTD_xhtml_metaAttributes_module">A.1. XHTML Metainformation Attributes Module</a></h2>

<p>You can download this version of this file from <a href="DTD/xhtml-metaAttributes-1.mod">http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/DTD/xhtml-metaAttributes-1.mod</a>. The latest version
is available at <a href="http://www.w3.org/MarkUp/DTD/xhtml-metaAttributes-1.mod">http://www.w3.org/MarkUp/DTD/xhtml-metaAttributes-1.mod</a>.</p>

<pre class="dtd">
&lt;!-- ...................................................................... --&gt;
&lt;!-- XHTML MetaAttributes Module  ......................................... --&gt;
&lt;!-- file: xhtml-metaAttributes-1.mod

     This is XHTML-RDFa, modules to annotate XHTML family documents.
     Copyright 2007-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved.
     Revision: $Id: Overview.html,v 1.1 2008/10/13 15:17:31 swick Exp $

     This DTD module is identified by the PUBLIC and SYSTEM identifiers:

       PUBLIC "-//W3C//ENTITIES XHTML MetaAttributes 1.0//EN"
       SYSTEM "http://www.w3.org/MarkUp/DTD/xhtml-metaAttributes-1.mod"

     Revisions:
     (none)
     ....................................................................... --&gt;

&lt;!ENTITY <span class="entity">% XHTML.global.attrs.prefixed</span> "IGNORE" &gt;

&lt;!-- Placeholder Compact URI-related types --&gt;
&lt;!ENTITY <span class="entity">% CURIE.datatype</span> "CDATA" &gt;
&lt;!ENTITY <span class="entity">% CURIEs.datatype</span> "CDATA" &gt;
&lt;!ENTITY <span class="entity">% SafeCURIE.datatype</span> "CDATA" &gt;
&lt;!ENTITY <span class="entity">% SafeCURIEs.datatype</span> "CDATA" &gt;
&lt;!ENTITY <span class="entity">% URIorSafeCURIE.datatype</span> "CDATA" &gt;
&lt;!ENTITY <span class="entity">% URIorSafeCURIEs.datatype</span> "CDATA" &gt;

&lt;!-- Common Attributes

     This module declares a collection of meta-information related 
     attributes.

     %NS.decl.attrib; is declared in the XHTML Qname module.

     This file also includes declarations of "global" versions of the 
     attributes.  The global versions of the attributes are for use on 
     elements in other namespaces.  
--&gt;

&lt;!ENTITY <span class="entity">% about.attrib</span>
     "about        %URIorSafeCURIE.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.about.attrib</span>
     "%XHTML.prefix;:about           %URIorSafeCURIE.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% typeof.attrib</span>
     "typeof        %CURIEs.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.typeof.attrib</span>
     "%XHTML.prefix;:typeof           %CURIEs.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% property.attrib</span>
     "property        %CURIEs.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.property.attrib</span>
     "%XHTML.prefix;:property           %CURIEs.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% resource.attrib</span>
     "resource        %URIorSafeCURIE.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.resource.attrib</span>
     "%XHTML.prefix;:resource           %URIorSafeCURIE.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% content.attrib</span>
     "content        CDATA             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.content.attrib</span>
     "%XHTML.prefix;:content           CDATA        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% datatype.attrib</span>
     "datatype        %CURIE.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.datatype.attrib</span>
     "%XHTML.prefix;:datatype           %CURIE.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% rel.attrib</span>
     "rel        %CURIEs.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.rel.attrib</span>
     "%XHTML.prefix;:rel           %CURIEs.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% rev.attrib</span>
     "rev        %CURIEs.datatype;             #IMPLIED"
&gt;

&lt;![%XHTML.global.attrs.prefixed;[
&lt;!ENTITY <span class="entity">% XHTML.global.rev.attrib</span>
     "%XHTML.prefix;:rev           %CURIEs.datatype;        #IMPLIED"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% Metainformation.extra.attrib</span> "" &gt;

&lt;!ENTITY <span class="entity">% Metainformation.attrib</span>
     "%about.attrib;
      %content.attrib;
      %datatype.attrib;
      %typeof.attrib;
      %property.attrib;
      %rel.attrib;
      %resource.attrib;
      %rev.attrib;
      %Metainformation.extra.attrib;"
&gt;

&lt;!ENTITY <span class="entity">% XHTML.global.metainformation.extra.attrib</span> "" &gt;

&lt;![%XHTML.global.attrs.prefixed;[

&lt;!ENTITY <span class="entity">% XHTML.global.metainformation.attrib</span>
     "%XHTML.global.about.attrib;
      %XHTML.global.content.attrib;
      %XHTML.global.datatype.attrib;
      %XHTML.global.typeof.attrib;
      %XHTML.global.property.attrib;
      %XHTML.global.rel.attrib;
      %XHTML.global.resource.attrib;
      %XHTML.global.rev.attrib;
      %XHTML.global.metainformation.extra.attrib;"
&gt;
]]&gt;

&lt;!ENTITY <span class="entity">% XHTML.global.metainformation.attrib</span> "" &gt;


&lt;!-- end of xhtml-metaAttributes-1.mod --&gt;

</pre>

<h2><a id="a_DTD_content_model" name="a_DTD_content_model">A.2. XHTML+RDFa Content Model Module</a></h2>

<p>You can download this version of this file from <a href="DTD/xhtml-rdfa-model-1.mod">http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/DTD/xhtml-rdfa-model-1.mod</a>. The latest version is
available at <a href="http://www.w3.org/MarkUp/DTD/xhtml-rdfa-model-1.mod">http://www.w3.org/MarkUp/DTD/xhtml-rdfa-model-1.mod</a>.</p>

<pre class="dtd">
&lt;!-- ....................................................................... --&gt;
&lt;!-- XHTML+RDFa Document Model Module  ..................................... --&gt;
&lt;!-- file: xhtml-rdfa-model-1.mod

     This is XHTML+RDFa.
     Copyright 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved.
     Revision: $Id: Overview.html,v 1.1 2008/10/13 15:17:31 swick Exp $ SMI

     This DTD module is identified by the PUBLIC and SYSTEM identifiers:

       PUBLIC "-//W3C//ENTITIES XHTML+RDFa Document Model 1.0//EN"
       SYSTEM "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-model-1.mod"

     Revisions:
     (none)
     ....................................................................... --&gt;

&lt;!-- XHTML+RDFa Document Model

     This module describes the groupings of elements that make up
     common content models for XHTML elements.

     XHTML has three basic content models:

         %Inline.mix;  character-level elements
         %Block.mix;   block-like elements, eg., paragraphs and lists
         %Flow.mix;    any block or inline elements

     Any parameter entities declared in this module may be used
     to create element content models, but the above three are
     considered 'global' (insofar as that term applies here).

     The reserved word '#PCDATA' (indicating a text string) is now
     included explicitly with each element declaration that is
     declared as mixed content, as XML requires that this token
     occur first in a content model specification.
--&gt;
&lt;!-- Extending the Model

     While in some cases this module may need to be rewritten to
     accommodate changes to the document model, minor extensions
     may be accomplished by redeclaring any of the three *.extra;
     parameter entities to contain extension element types as follows:

         %Misc.extra;    whose parent may be any block or
                         inline element.

         %Inline.extra;  whose parent may be any inline element.

         %Block.extra;   whose parent may be any block element.

     If used, these parameter entities must be an OR-separated
     list beginning with an OR separator ("|"), eg., "| a | b | c"

     All block and inline *.class parameter entities not part
     of the *struct.class classes begin with "| " to allow for
     exclusion from mixes.
--&gt;

&lt;!-- ..............  Optional Elements in head  .................. --&gt;

&lt;!ENTITY <span class="entity">% HeadOpts.mix</span>
     "( %script.qname; | %style.qname; | %meta.qname;
      | %link.qname; | %object.qname; )*"
&gt;

&lt;!-- .................  Miscellaneous Elements  .................. --&gt;

&lt;!-- ins and del are used to denote editing changes
--&gt;
&lt;!ENTITY <span class="entity">% Edit.class</span> "| %ins.qname; | %del.qname;" &gt;

&lt;!-- script and noscript are used to contain scripts
     and alternative content
--&gt;
&lt;!ENTITY <span class="entity">% Script.class</span> "| %script.qname; | %noscript.qname;" &gt;

&lt;!ENTITY <span class="entity">% Misc.extra</span> "" &gt;

&lt;!-- These elements are neither block nor inline, and can
     essentially be used anywhere in the document body.
--&gt;
&lt;!ENTITY <span class="entity">% Misc.class</span>
     "%Edit.class;
      %Script.class;
      %Misc.extra;"
&gt;

&lt;!-- ....................  Inline Elements  ...................... --&gt;

&lt;!ENTITY <span class="entity">% InlStruct.class</span> "%br.qname; | %span.qname;" &gt;

&lt;!ENTITY <span class="entity">% InlPhras.class</span>
     "| %em.qname; | %strong.qname; | %dfn.qname; | %code.qname;
      | %samp.qname; | %kbd.qname; | %var.qname; | %cite.qname;
      | %abbr.qname; | %acronym.qname; | %q.qname;" &gt;

&lt;!ENTITY <span class="entity">% InlPres.class</span>
     "| %tt.qname; | %i.qname; | %b.qname; | %big.qname;
      | %small.qname; | %sub.qname; | %sup.qname;" &gt;

&lt;!ENTITY <span class="entity">% I18n.class</span> "| %bdo.qname;" &gt;

&lt;!ENTITY <span class="entity">% Anchor.class</span> "| %a.qname;" &gt;

&lt;!ENTITY <span class="entity">% InlSpecial.class</span>
     "| %img.qname; | %map.qname;
      | %object.qname;" &gt;

&lt;!ENTITY <span class="entity">% InlForm.class</span>
     "| %input.qname; | %select.qname; | %textarea.qname;
      | %label.qname; | %button.qname;" &gt;

&lt;!ENTITY <span class="entity">% Inline.extra</span> "" &gt;

&lt;!ENTITY <span class="entity">% Ruby.class</span> "| %ruby.qname;" &gt;

&lt;!-- %Inline.class; includes all inline elements,
     used as a component in mixes
--&gt;
&lt;!ENTITY <span class="entity">% Inline.class</span>
     "%InlStruct.class;
      %InlPhras.class;
      %InlPres.class;
      %I18n.class;
      %Anchor.class;
      %InlSpecial.class;
      %InlForm.class;
      %Ruby.class;
      %Inline.extra;"
&gt;

&lt;!-- %InlNoRuby.class; includes all inline elements
     except ruby, used as a component in mixes
--&gt;
&lt;!ENTITY <span class="entity">% InlNoRuby.class</span>
     "%InlStruct.class;
      %InlPhras.class;
      %InlPres.class;
      %I18n.class;
      %Anchor.class;
      %InlSpecial.class;
      %InlForm.class;
      %Inline.extra;"
&gt;

&lt;!-- %NoRuby.content; includes all inlines except ruby
--&gt;
&lt;!ENTITY <span class="entity">% NoRuby.content</span>
     "( #PCDATA
      | %InlNoRuby.class;
      %Misc.class; )*"
&gt;

&lt;!-- %InlNoAnchor.class; includes all non-anchor inlines,
     used as a component in mixes
--&gt;
&lt;!ENTITY <span class="entity">% InlNoAnchor.class</span>
     "%InlStruct.class;
      %InlPhras.class;
      %InlPres.class;
      %I18n.class;
      %InlSpecial.class;
      %InlForm.class;
      %Ruby.class;
      %Inline.extra;"
&gt;

&lt;!-- %InlNoAnchor.mix; includes all non-anchor inlines
--&gt;
&lt;!ENTITY <span class="entity">% InlNoAnchor.mix</span>
     "%InlNoAnchor.class;
      %Misc.class;"
&gt;

&lt;!-- %Inline.mix; includes all inline elements, including %Misc.class;
--&gt;
&lt;!ENTITY <span class="entity">% Inline.mix</span>
     "%Inline.class;
      %Misc.class;"
&gt;

&lt;!-- .....................  Block Elements  ...................... --&gt;

&lt;!-- In the HTML 4.0 DTD, heading and list elements were included
     in the %block; parameter entity. The %Heading.class; and
     %List.class; parameter entities must now be included explicitly
     on element declarations where desired.
--&gt;

&lt;!ENTITY <span class="entity">% Heading.class</span>
     "%h1.qname; | %h2.qname; | %h3.qname;
      | %h4.qname; | %h5.qname; | %h6.qname;" &gt;

&lt;!ENTITY <span class="entity">% List.class</span> "%ul.qname; | %ol.qname; | %dl.qname;" &gt;

&lt;!ENTITY <span class="entity">% Table.class</span> "| %table.qname;" &gt;

&lt;!ENTITY <span class="entity">% Form.class</span>  "| %form.qname;" &gt;

&lt;!ENTITY <span class="entity">% Fieldset.class</span>  "| %fieldset.qname;" &gt;

&lt;!ENTITY <span class="entity">% BlkStruct.class</span> "%p.qname; | %div.qname;" &gt;

&lt;!ENTITY <span class="entity">% BlkPhras.class</span>
     "| %pre.qname; | %blockquote.qname; | %address.qname;" &gt;

&lt;!ENTITY <span class="entity">% BlkPres.class</span> "| %hr.qname; " &gt;

&lt;!ENTITY <span class="entity">% BlkSpecial.class</span>
     "%Table.class;
      %Form.class;
      %Fieldset.class;"
&gt;

&lt;!ENTITY <span class="entity">% Block.extra</span> "" &gt;

&lt;!-- %Block.class; includes all block elements,
     used as an component in mixes
--&gt;
&lt;!ENTITY <span class="entity">% Block.class</span>
     "%BlkStruct.class;
      %BlkPhras.class;
      %BlkPres.class;
      %BlkSpecial.class;
      %Block.extra;"
&gt;

&lt;!-- %Block.mix; includes all block elements plus %Misc.class;
--&gt;
&lt;!ENTITY <span class="entity">% Block.mix</span>
     "%Heading.class;
      | %List.class;
      | %Block.class;
      %Misc.class;"
&gt;

&lt;!-- ................  All Content Elements  .................. --&gt;

&lt;!-- %Flow.mix; includes all text content, block and inline
--&gt;
&lt;!ENTITY <span class="entity">% Flow.mix</span>
     "%Heading.class;
      | %List.class;
      | %Block.class;
      | %Inline.class;
      %Misc.class;"
&gt;

&lt;!-- end of xhtml-rdfa-model-1.mod --&gt;

</pre>

<h2><a id="a_DTD_driver" name="a_DTD_driver">A.3. XHTML+RDFa Driver Module</a></h2>

<p>You can download this version of this file from <a href="DTD/xhtml-rdfa-1.dtd">http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/DTD/xhtml-rdfa-1.dtd</a>. The latest version is available at <a
href="http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd</a>.</p>

<pre class="dtd">
&lt;!-- ....................................................................... --&gt;
&lt;!-- XHTML 1.1 + RDFa DTD  ................................................. --&gt;
&lt;!-- file: xhtml-rdfa-1.dtd
--&gt;

&lt;!-- XHTML 1.1 + RDFa DTD

     This is an example markup language combining XHTML 1.1 and the RDFa
     modules.

     XHTML+RDFa
     Copyright 1998-2008 World Wide Web Consortium
        (Massachusetts Institute of Technology, European Research Consortium
         for Informatics and Mathematics, Keio University).
         All Rights Reserved.

     Permission to use, copy, modify and distribute the XHTML DTD and its 
     accompanying documentation for any purpose and without fee is hereby 
     granted in perpetuity, provided that the above copyright notice and 
     this paragraph appear in all copies.  The copyright holders make no 
     representation about the suitability of the DTD for any purpose.

     It is provided "as is" without expressed or implied warranty.

--&gt;
&lt;!-- This is the driver file for version 1 of the XHTML + RDFa DTD.

     Please use this public identifier to identify it:

         "-//W3C//DTD XHTML+RDFa 1.0//EN"
--&gt;
&lt;!ENTITY <span class="entity">% XHTML.version</span>  "XHTML+RDFa 1.0" &gt;

&lt;!-- Use this URI to identify the default namespace:

         "http://www.w3.org/1999/xhtml"

     See the Qualified Names module for information
     on the use of namespace prefixes in the DTD.

     Note that XHTML namespace elements are not prefixed by default,
     but the XHTML namespace prefix is defined as "xhtml" so that
     other markup languages can extend this one and use the XHTML
     prefixed global attributes if required.

--&gt;
&lt;!ENTITY <span class="entity">% NS.prefixed</span> "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% XHTML.prefix</span> "xhtml" &gt;

&lt;!-- Be sure to include prefixed global attributes - we don't need
     them, but languages that extend XHTML 1.1 might.
--&gt;
&lt;!ENTITY <span class="entity">% XHTML.global.attrs.prefixed</span> "INCLUDE" &gt;

&lt;!-- Reserved for use with the XLink namespace:
--&gt;
&lt;!ENTITY <span class="entity">% XLINK.xmlns</span> "" &gt;
&lt;!ENTITY <span class="entity">% XLINK.xmlns.attrib</span> "" &gt;

&lt;!-- For example, if you are using XHTML 1.1 directly, use the public
     identifier in the DOCTYPE declaration, with the namespace declaration
     on the document element to identify the default namespace:

       &lt;?xml version="1.0"?&gt;
       &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
                             "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"&gt;
       &lt;html xmlns="http://www.w3.org/1999/xhtml"
             xml:lang="en"&gt;
       ...
       &lt;/html&gt;

     Revisions:
     (none)
--&gt;

&lt;!-- reserved for future use with document profiles --&gt;
&lt;!ENTITY <span class="entity">% XHTML.profile</span>  "" &gt;

&lt;!-- ensure XHTML Notations are disabled --&gt;
&lt;!ENTITY <span class="entity">% xhtml-notations.module</span> "IGNORE" &gt;

&lt;!-- Bidirectional Text features
     This feature-test entity is used to declare elements
     and attributes used for bidirectional text support.
--&gt;
&lt;!ENTITY <span class="entity">% XHTML.bidi</span>  "INCLUDE" &gt;

&lt;!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --&gt;

&lt;!-- Pre-Framework Redeclaration placeholder  .................... --&gt;
&lt;!-- this serves as a location to insert markup declarations
     into the DTD prior to the framework declarations.
--&gt;
&lt;!ENTITY <span class="entity">% xhtml-prefw-redecl.module</span> "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-prefw-redecl.mod</span> "" &gt;
&lt;![%xhtml-prefw-redecl.module;[
%xhtml-prefw-redecl.mod;
&lt;!-- end of xhtml-prefw-redecl.module --&gt;]]&gt;

&lt;!-- we need the datatypes now --&gt;
&lt;!ENTITY <span class="entity">% xhtml-datatypes.module</span> "INCLUDE" &gt;
&lt;![%xhtml-datatypes.module;[
&lt;!ENTITY <span class="entity">% xhtml-datatypes.mod</span>
     PUBLIC "-//W3C//ENTITIES XHTML Datatypes 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-datatypes-1.mod" &gt;
%xhtml-datatypes.mod;]]&gt;

&lt;!-- bring in the RDFa attributes cause we need them in Common --&gt;
&lt;!ENTITY <span class="entity">% xhtml-metaAttributes.module</span> "INCLUDE" &gt;
&lt;![%xhtml-metaAttributes.module;[
&lt;!ENTITY <span class="entity">% xhtml-metaAttributes.mod</span>
     PUBLIC "-//W3C//ENTITIES XHTML MetaAttributes 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-metaAttributes-1.mod" &gt;
%xhtml-metaAttributes.mod;]]&gt;

&lt;!ENTITY <span class="entity">% xhtml-events.module</span> "INCLUDE" &gt;

&lt;!ENTITY <span class="entity">% Common.extra.attrib</span>
   "href         %URI.datatype;           #IMPLIED
    %Metainformation.attrib;"
&gt;

&lt;!-- Inline Style Module  ........................................ --&gt;
&lt;!ENTITY <span class="entity">% xhtml-inlstyle.module</span> "INCLUDE" &gt;
&lt;![%xhtml-inlstyle.module;[
&lt;!ENTITY <span class="entity">% xhtml-inlstyle.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Inline Style 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-inlstyle-1.mod" &gt;
%xhtml-inlstyle.mod;]]&gt;

&lt;!-- declare Document Model module instantiated in framework
--&gt;
&lt;!ENTITY <span class="entity">% xhtml-model.mod</span>
     PUBLIC "-//W3C//ENTITIES XHTML+RDFa Document Model 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-model-1.mod" &gt;

&lt;!-- Modular Framework Module (required) ......................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-framework.module</span> "INCLUDE" &gt;
&lt;![%xhtml-framework.module;[
&lt;!ENTITY <span class="entity">% xhtml-framework.mod</span>
     PUBLIC "-//W3C//ENTITIES XHTML Modular Framework 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-framework-1.mod" &gt;
%xhtml-framework.mod;]]&gt;

&lt;!-- Post-Framework Redeclaration placeholder  ................... --&gt;
&lt;!-- this serves as a location to insert markup declarations
     into the DTD following the framework declarations.
--&gt;
&lt;!ENTITY <span class="entity">% xhtml-postfw-redecl.module</span> "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-postfw-redecl.mod</span> ""&gt;
&lt;![%xhtml-postfw-redecl.module;[
%xhtml-postfw-redecl.mod;
&lt;!-- end of xhtml-postfw-redecl.module --&gt;]]&gt;



&lt;!-- Text Module (Required)  ..................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-text.module</span> "INCLUDE" &gt;
&lt;![%xhtml-text.module;[
&lt;!ENTITY <span class="entity">% xhtml-text.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Text 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-text-1.mod" &gt;
%xhtml-text.mod;]]&gt;

&lt;!-- Hypertext Module (required) ................................. --&gt;
&lt;!ENTITY <span class="entity">% a.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-hypertext.module</span> "INCLUDE" &gt;
&lt;![%xhtml-hypertext.module;[
&lt;!ENTITY <span class="entity">% xhtml-hypertext.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Hypertext 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-hypertext-1.mod" &gt;
%xhtml-hypertext.mod;]]&gt;
&lt;!ATTLIST %a.qname;
      %Common.attrib;
      charset      %Charset.datatype;       #IMPLIED
      type         %ContentType.datatype;   #IMPLIED
      hreflang     %LanguageCode.datatype;  #IMPLIED
      accesskey    %Character.datatype;     #IMPLIED
      tabindex     %Number.datatype;        #IMPLIED
&gt;

&lt;!-- Lists Module (required)  .................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-list.module</span> "INCLUDE" &gt;
&lt;![%xhtml-list.module;[
&lt;!ENTITY <span class="entity">% xhtml-list.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Lists 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-list-1.mod" &gt;
%xhtml-list.mod;]]&gt;

&lt;!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --&gt;

&lt;!-- Edit Module  ................................................ --&gt;
&lt;!ENTITY <span class="entity">% xhtml-edit.module</span> "INCLUDE" &gt;
&lt;![%xhtml-edit.module;[
&lt;!ENTITY <span class="entity">% xhtml-edit.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Editing Elements 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-edit-1.mod" &gt;
%xhtml-edit.mod;]]&gt;

&lt;!-- BIDI Override Module  ....................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-bdo.module</span> "%XHTML.bidi;" &gt;
&lt;![%xhtml-bdo.module;[
&lt;!ENTITY <span class="entity">% xhtml-bdo.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML BIDI Override Element 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-bdo-1.mod" &gt;
%xhtml-bdo.mod;]]&gt;

&lt;!-- Ruby Module  ................................................ --&gt;
&lt;!ENTITY <span class="entity">% Ruby.common.attlists</span> "INCLUDE" &gt;
&lt;!ENTITY <span class="entity">% Ruby.common.attrib</span> "%Common.attrib;" &gt;
&lt;!ENTITY <span class="entity">% xhtml-ruby.module</span> "INCLUDE" &gt;
&lt;![%xhtml-ruby.module;[
&lt;!ENTITY <span class="entity">% xhtml-ruby.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Ruby 1.0//EN"
            "http://www.w3.org/TR/ruby/xhtml-ruby-1.mod" &gt;
%xhtml-ruby.mod;]]&gt;

&lt;!-- Presentation Module  ........................................ --&gt;
&lt;!ENTITY <span class="entity">% xhtml-pres.module</span> "INCLUDE" &gt;
&lt;![%xhtml-pres.module;[
&lt;!ENTITY <span class="entity">% xhtml-pres.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Presentation 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-pres-1.mod" &gt;
%xhtml-pres.mod;]]&gt;

&lt;!ENTITY <span class="entity">% link.attlist</span>  "IGNORE" &gt;
&lt;!-- Link Element Module  ........................................ --&gt;
&lt;!ENTITY <span class="entity">% xhtml-link.module</span> "INCLUDE" &gt;
&lt;![%xhtml-link.module;[
&lt;!ENTITY <span class="entity">% xhtml-link.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Link Element 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-link-1.mod" &gt;
%xhtml-link.mod;]]&gt;

&lt;!ATTLIST %link.qname;
      %Common.attrib;
      charset      %Charset.datatype;       #IMPLIED
      hreflang     %LanguageCode.datatype;  #IMPLIED
      type         %ContentType.datatype;   #IMPLIED
      media        %MediaDesc.datatype;     #IMPLIED
&gt;

&lt;!-- Document Metainformation Module  ............................ --&gt;
&lt;!ENTITY <span class="entity">% meta.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-meta.module</span> "INCLUDE" &gt;
&lt;![%xhtml-meta.module;[
&lt;!ENTITY <span class="entity">% xhtml-meta.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Metainformation 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-meta-1.mod" &gt;
%xhtml-meta.mod;]]&gt;
&lt;!ATTLIST %meta.qname;
      %Common.attrib;
      http-equiv   NMTOKEN                  #IMPLIED
      name         NMTOKEN                  #IMPLIED
      scheme       CDATA                    #IMPLIED
&gt;

&lt;!-- Base Element Module  ........................................ --&gt;
&lt;!ENTITY <span class="entity">% xhtml-base.module</span> "INCLUDE" &gt;
&lt;![%xhtml-base.module;[
&lt;!ENTITY <span class="entity">% xhtml-base.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Base Element 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-base-1.mod" &gt;
%xhtml-base.mod;]]&gt;

&lt;!-- Scripting Module  ........................................... --&gt;
&lt;!ENTITY <span class="entity">% script.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-script.module</span> "INCLUDE" &gt;
&lt;![%xhtml-script.module;[
&lt;!ENTITY <span class="entity">% xhtml-script.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Scripting 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-script-1.mod" &gt;
%xhtml-script.mod;]]&gt;

&lt;!ATTLIST %script.qname;
      %XHTML.xmlns.attrib;
      %id.attrib;
      %Metainformation.attrib;
      href         %URI.datatype;           #IMPLIED
      xml:space    ( preserve )             #FIXED 'preserve'
      charset      %Charset.datatype;       #IMPLIED
      type         %ContentType.datatype;   #REQUIRED
      src          %URI.datatype;           #IMPLIED
      defer        ( defer )                #IMPLIED
&gt;

&lt;!-- Style Sheets Module  ......................................... --&gt;
&lt;!ENTITY <span class="entity">% style.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-style.module</span> "INCLUDE" &gt;
&lt;![%xhtml-style.module;[
&lt;!ENTITY <span class="entity">% xhtml-style.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Style Sheets 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-style-1.mod" &gt;
%xhtml-style.mod;]]&gt;
&lt;!ATTLIST %style.qname;
      %XHTML.xmlns.attrib;
      %id.attrib;
      %title.attrib;
      %I18n.attrib;
      %Metainformation.attrib;
      href         %URI.datatype;           #IMPLIED
      xml:space    ( preserve )             #FIXED 'preserve'
      type         %ContentType.datatype;   #REQUIRED
      media        %MediaDesc.datatype;     #IMPLIED
&gt;

&lt;!-- Image Module  ............................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-image.module</span> "INCLUDE" &gt;
&lt;![%xhtml-image.module;[
&lt;!ENTITY <span class="entity">% xhtml-image.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Images 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-image-1.mod" &gt;
%xhtml-image.mod;]]&gt;

&lt;!-- Client-side Image Map Module  ............................... --&gt;
&lt;!ENTITY <span class="entity">% area.attlist</span>  "IGNORE" &gt;

&lt;!ENTITY <span class="entity">% xhtml-csismap.module</span> "INCLUDE" &gt;
&lt;![%xhtml-csismap.module;[
&lt;!ENTITY <span class="entity">% xhtml-csismap.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Client-side Image Maps 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-csismap-1.mod" &gt;
%xhtml-csismap.mod;]]&gt;

&lt;!ATTLIST %area.qname;
      %Common.attrib;
      shape        %Shape.datatype;         'rect'
      coords       %Coords.datatype;        #IMPLIED
      nohref       ( nohref )               #IMPLIED
      alt          %Text.datatype;          #REQUIRED
      tabindex     %Number.datatype;        #IMPLIED
      accesskey    %Character.datatype;     #IMPLIED
&gt;

&lt;!-- Server-side Image Map Module  ............................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-ssismap.module</span> "INCLUDE" &gt;
&lt;![%xhtml-ssismap.module;[
&lt;!ENTITY <span class="entity">% xhtml-ssismap.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Server-side Image Maps 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-ssismap-1.mod" &gt;
%xhtml-ssismap.mod;]]&gt;

&lt;!-- Param Element Module  ....................................... --&gt;
&lt;!ENTITY <span class="entity">% param.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-param.module</span> "INCLUDE" &gt;
&lt;![%xhtml-param.module;[
&lt;!ENTITY <span class="entity">% xhtml-param.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Param Element 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-param-1.mod" &gt;
%xhtml-param.mod;]]&gt;

&lt;!ATTLIST %param.qname;
      %XHTML.xmlns.attrib;
      %id.attrib;
      %Metainformation.attrib;
      href         %URI.datatype;           #IMPLIED
      name         CDATA                    #REQUIRED
      value        CDATA                    #IMPLIED
      valuetype    ( data | ref | object )  'data'
      type         %ContentType.datatype;   #IMPLIED
&gt;
&lt;!-- Embedded Object Module  ..................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-object.module</span> "INCLUDE" &gt;
&lt;![%xhtml-object.module;[
&lt;!ENTITY <span class="entity">% xhtml-object.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Embedded Object 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-object-1.mod" &gt;
%xhtml-object.mod;]]&gt;

&lt;!-- Tables Module ............................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-table.module</span> "INCLUDE" &gt;
&lt;![%xhtml-table.module;[
&lt;!ENTITY <span class="entity">% xhtml-table.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Tables 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-table-1.mod" &gt;
%xhtml-table.mod;]]&gt;

&lt;!-- Forms Module  ............................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-form.module</span> "INCLUDE" &gt;
&lt;![%xhtml-form.module;[
&lt;!ENTITY <span class="entity">% xhtml-form.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Forms 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-form-1.mod" &gt;
%xhtml-form.mod;]]&gt;

&lt;!-- Target Attribute Module  .................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-target.module</span> "INCLUDE" &gt;
&lt;![%xhtml-target.module;[
&lt;!ENTITY <span class="entity">% xhtml-target.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Target 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-target-1.mod" &gt;
%xhtml-target.mod;]]&gt;

&lt;!-- Legacy Markup ............................................... --&gt;
&lt;!ENTITY <span class="entity">% xhtml-legacy.module</span> "IGNORE" &gt;
&lt;![%xhtml-legacy.module;[
&lt;!ENTITY <span class="entity">% xhtml-legacy.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Legacy Markup 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-legacy-1.mod" &gt;
%xhtml-legacy.mod;]]&gt;

&lt;!-- Document Structure Module (required)  ....................... --&gt;
&lt;!ENTITY <span class="entity">% html.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% head.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% title.attlist</span>  "IGNORE" &gt;
&lt;!ENTITY <span class="entity">% xhtml-struct.module</span> "INCLUDE" &gt;
&lt;![%xhtml-struct.module;[
&lt;!ENTITY <span class="entity">% xhtml-struct.mod</span>
     PUBLIC "-//W3C//ELEMENTS XHTML Document Structure 1.0//EN"
            "http://www.w3.org/MarkUp/DTD/xhtml-struct-1.mod" &gt;
%xhtml-struct.mod;]]&gt;
&lt;!ENTITY <span class="entity">% profile.attrib</span>
     "profile      %URI.datatype;           '%XHTML.profile;'"
&gt;
&lt;!ENTITY <span class="entity">% XHTML.version.attrib</span>
     "version      %FPI.datatype;           #FIXED '%XHTML.version;'"
&gt;
&lt;!ATTLIST %html.qname;
      %Common.attrib;
      %XSI.schemaLocation.attrib;
      %XHTML.version.attrib;
&gt;
&lt;!ATTLIST %head.qname;
      %Common.attrib;
      %profile.attrib;
&gt;
&lt;!ATTLIST %title.qname;
      %Common.attrib;
&gt;

&lt;!-- end of XHTML-RDFa DTD  ................................................ --&gt;
&lt;!-- ....................................................................... --&gt;

</pre>

<h2><a id="a_xhtml11_catalog" name="a_xhtml11_catalog">A.4. SGML Open Catalog Entry for XHTML+RDFa</a></h2>

<p>This section contains the SGML Open Catalog-format definition [<a class="nref" href="#ref_CATALOG">CATALOG</a>] of the public identifiers for XHTML+RDFa 1.0.</p>

<p>You can download this version of this file from <a href="DTD/xhtml-rdfa.cat">http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/DTD/xhtml-rdfa.cat</a>. The latest version is available at <a href= 
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa.cat">http://www.w3.org/MarkUp/DTD/xhtml-rdfa.cat</a>.</p>

<pre class="dtd">
-- .......................................................................... --
-- File catalog  ............................................................ --

--  XHTML+RDFa Catalog Data File

    Revision:  $Revision: 1.1 $

    See "Entity Management", SGML Open Technical Resolution 9401 for detailed
    information on supplying and using catalog data. This document is available
    from OASIS at URL:

        &lt;http://www.oasis-open.org/html/tr9401.html&gt;
--

-- .......................................................................... --
-- SGML declaration associated with XHTML  .................................. --

OVERRIDE YES

SGMLDECL "xml1.dcl"

-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --

-- XHTML+RDFa modules          .............................................. --


PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"       "xhtml-rdfa-1.dtd"


PUBLIC "-//W3C//ENTITIES XHTML+RDFa Document Model 1.0//EN"      "xhtml-rdfa-model-1.mod"

PUBLIC "-//W3C//ENTITIES XHTML MetaAttributes 1.0//EN"           "xhtml-metaAttributes-1.mod"

-- End of catalog data  ..................................................... --
-- .......................................................................... --

</pre>

<!--OddPage-->
<h1><a id="s_datatypes" name="s_datatypes">B. CURIE Datatypes</a></h1>

<p><em>This section is informative.</em></p>

<p>In order to facilitate the use of CURIEs in markup languages, this specification defines some additional datatypes in the XHTML datatype space
(<code>http://www.w3.org/1999/xhtml/datatypes/</code>). Markup languages that use XHTML Modularization can find these normative definitions in the Modularization support file "datatypes" for their
schema grammar:</p>

<ul>
<li><a href="http://www.w3.org/MarkUp/DTD/xhtml-datatypes-1.mod">DTD xhtml-datatypes.mod</a></li>

<li><a href="http://www.w3.org/MarkUp/SCHEMA/xhtml-datatypes-1.xsd">XML Schema xhtml-datatypes.xsd</a></li>
</ul>

<p>Specifically, the following datatypes are introduced:</p>

<dl>
<dt>CURIE</dt>

<dd>A single <a href="#P_curie">curie</a></dd>

<dt>CURIEs</dt>

<dd>A whitespace separated list of CURIEs</dd>

<dt>SafeCURIE</dt>

<dd>A single <a href="#P_safe_curie">safe_curie</a></dd>

<dt>SafeCURIEs</dt>

<dd>A whitespace separated list of SafeCURIEs</dd>

<dt>URIorSafeCURIE</dt>

<dd>A URI or a SafeCURIE (since you need a SafeCURIE to disambiguate between a common URI and a CURIE)</dd>

<dt>URIorSafeCURIEs</dt>

<dd>A whitespace separated list of URIorSafeCURIEs</dd>
</dl>

<h2><a id="sec_B.1." name="sec_B.1.">B.1. XML Schema Definition</a></h2>

<p>The following <i>informative</i> XML Schema definition for these datatypes is included as an example:</p>

<div class="example">
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xs:schema
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns="http://www.w3.org/1999/xhtml/datatypes/"
 xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/"
 targetNamespace="http://www.w3.org/1999/xhtml/datatypes/"
 elementFormDefault="qualified"
&gt;
    &lt;xs:simpleType name="CURIE"&gt;
        &lt;xs:restriction base="xs:string"&gt;
            &lt;xs:pattern value="(([\i-[:]][\c-[:]]*)?:)?.+" /&gt;
            &lt;xs:minLength value="1"/&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt; 

    &lt;xs:simpleType name="CURIEs"&gt;
        &lt;xs:list itemType="xh11d:CURIE"/&gt;
    &lt;/xs:simpleType&gt;

    &lt;xs:simpleType name="SafeCURIE"&gt;
        &lt;xs:restriction base="xs:string"&gt;
            &lt;xs:pattern value="\[(([\i-[:]][\c-[:]]*)?:)?.+\]" /&gt;
            &lt;xs:minLength value="3"/&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;

    &lt;xs:simpleType name="SafeCURIEs"&gt;
        &lt;xs:list itemType="xh11d:SafeCURIE"/&gt;
    &lt;/xs:simpleType&gt;

    &lt;xs:simpleType name="URIorSafeCURIE"&gt;
        &lt;xs:union memberTypes="xs:anyURI xh11d:SafeCURIE" /&gt;
    &lt;/xs:simpleType&gt;

    &lt;xs:simpleType name="URIorSafeCURIEs"&gt;
        &lt;xs:list itemType="xh11d:URIorSafeCURIE"/&gt;
    &lt;/xs:simpleType&gt;
&lt;/xs:schema&gt;
</pre>
</div>

<h2><a id="sec_B.2." name="sec_B.2.">B.2. XML DTD Definition</a></h2>

<p>The following <i>informative</i> XML DTD definition for these datatypes is included as an example:</p>

<div class="example">
<pre>
&lt;!ENTITY % CURIE.datatype "CDATA" &gt;
&lt;!ENTITY % CURIEs.datatype "CDATA" &gt;
&lt;!ENTITY % SafeCURIE.datatype "CDATA" &gt;
&lt;!ENTITY % SafeCURIEs.datatype "CDATA" &gt;
&lt;!ENTITY % URIorSafeCURIE.datatype "CDATA" &gt;
&lt;!ENTITY % URIorSafeCURIEs.datatype "CDATA" &gt;
</pre>
</div>

<!--OddPage-->
<h1><a id="a_deployment" name="a_deployment">C. Deployment Advice</a></h1>

<p><i>This section is informative.</i></p>

<p>Documents written using the markup language defined in this specification can be validated using the DTD defined in <a href="#a_xhtmlrdfa_dtd">Appendix A</a>. If a document author wants to
faciliate such validation, they may include the following declaration at the top of their document:</p>

<pre>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"&gt;
</pre>

<p>The XML Namespace document associated with the XHTML Family of markup languages uses the mechanism for transforming XHTML+RDFa documents into RDF as defined by [<a class="nref" href=
"#ref_GRDDL">GRDDL</a>]. Authors who want to be certain their documents are transformable by all [<a class="nref" href="#ref_GRDDL">GRDDL</a>] processors may also include a <code>profile</code>
attribute on the <code>head</code> element that includes a reference to the XHTML vocabulary URI <code>http://www.w3.org/1999/xhtml/vocab</code>.</p>

<!--OddPage-->
<h1><a id="a_references" name="a_references">D. References</a></h1>

<h2><a id="sec_D.1." name="sec_D.1.">D.1. Related Specifications</a></h2>

<p><i>This section is normative.</i></p>

<dl>
<dt>[<a id="ref_IRI" class="normref">IRI</a>]</dt>

<dd>"<cite><a href="http://www.ietf.org/rfc/rfc3987.txt">Internationalized Resource Identifiers (IRI)</a></cite>", RFC 3987, M.Duerst, M. Suignard January 2005.<br />
Available at: http://www.ietf.org/rfc/rfc3987.txt</dd>

<dt>[<a id="ref_P3P" class="normref">P3P</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2002/REC-P3P-20020416/">The Platform for Privacy Preferences 1.0 (P3P1.0) Specification</a></cite>", W3C Recommendation, L. Cranor <i lang="la" xml:lang="la">
et al.</i>, 16 April 2002.<br />
Available at: http://www.w3.org/TR/2002/REC-P3P-20020416/</dd>

<dt>[<a id="ref_RFC2119" class="normref">RFC2119</a>]</dt>

<dd>"<cite><a href="http://www.rfc-editor.org/rfc/rfc2119.txt">Key words for use in RFCs to indicate requirement levels</a></cite>", RFC 2119, S. Bradner, March 1997.<br />
 Available at: http://www.rfc-editor.org/rfc/rfc2119.txt</dd>

<dt>[<a id="ref_RFC3236">RFC3236</a>]</dt>

<dd>"<a href="http://www.ietf.org/rfc/rfc3236.txt">The 'application/xhtml+xml' Media Type</a>", M. Baker, P. Stark, January 2002.<br />
Available at: http://www.ietf.org/rfc/rfc3236.txt</dd>

<dt>[<a id="ref_RUBY" class="normref">RUBY</a>]</dt>

<dd><cite><a href="http://www.w3.org/TR/2001/REC-ruby-20010531">Ruby Annotation</a></cite>, W3C Recommendation, Marcin Sawicki, et al., 31 May 2001.<br />
 See: http://www.w3.org/TR/2001/REC-ruby-20010531</dd>

<dt>[<a id="ref_URI" class="normref">URI</a>]</dt>

<dd>"<cite><a href="http://www.ietf.org/rfc/rfc3986.txt">Uniform Resource Identifier (URI): Generic Syntax</a></cite>", RFC 3986, T. Berners-Lee, R. Fielding, L. Masinter, January 2005.<br />
 Available at: http://www.ietf.org/rfc/rfc3986.txt</dd>

<dt>[<a id="ref_XMLBASE" class="normref">XMLBASE</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2001/REC-xmlbase-20010627/">XML Base</a></cite>", W3C Recommendation, J. Marsh, <i><abbr title="editor">ed.</abbr></i>, 27 June 2001.<br />
Available at: http://www.w3.org/TR/2001/REC-xmlbase-20010627/</dd>

<dt>[<a id="ref_XMLNS" class="normref">XMLNS</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/1999/REC-xml-names-19990114">Namespaces in XML</a></cite>", W3C Recommendation, T. Bray <i lang="la" xml:lang="la">et al.</i>, <i><abbr title="editors">
eds.</abbr></i>, 14 January 1999.<br />
Available at: http://www.w3.org/TR/1999/REC-xml-names-19990114</dd>

<dt class="label">[<a id="ref_XML-LANG">XML-LANG</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2004/REC-xml-20040204">Extensible Markup Language (XML) 1.0 (Third Edition)</a></cite>", W3C Recommendation, T. Bray <i lang="la" xml:lang="la">et al.</i>,
<i><abbr title="editors">eds.</abbr></i>, 4 February 2004.<br />
Available at: http://www.w3.org/TR/2004/REC-xml-20040204</dd>

<dt>[<a id="ref_XHTMLMOD" class="normref">XHTMLMOD</a>]</dt>

<dd><cite><a href="http://www.w3.org/TR/2008/REC-xhtml-modularization-20081008">XHTML Modularization 1.1</a></cite>, W3C Recommendation, Shane McCarron, et al., 8 October 2008<br />
 See: http://www.w3.org/TR/2008/REC-xhtml-modularization-20081008</dd>

<dt>[<a id="ref_XMLSCHEMA" class="normref">XMLSCHEMA</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/">XML Schema Part 1: Structures Second Edition</a></cite>", W3C Recommendation, H. S. Thompson <i lang="la" xml:lang="la">et
al.</i>, <i><abbr title="editors">eds.</abbr></i>, 28 October 2004.<br />
Available at: http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/<br />
See also "<cite><a href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">XML Schema Part 2: Datatypes Second Edition</a></cite>", available at:
http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/</dd>
</dl>

<h2><a id="sec_D.2." name="sec_D.2.">D.2. Other References</a></h2>

<p><i>This section is informative.</i></p>

<dl>
<dt>[<a id="ref_CATALOG" class="ref">CATALOG</a>]</dt>

<dd><cite><a href="http://www.oasis-open.org/html/a401.htm">Entity Management: OASIS Technical Resolution 9401:1997 (Amendment 2 to TR 9401)</a></cite>, Paul Grosso, Chair, Entity Management
Subcommittee, SGML Open, 10 September 1997.<br />
 See: http://www.oasis-open.org/html/a401.htm</dd>

<dt class="label">[<a id="DBPEDIA">DBPEDIA</a>]</dt>

<dd>DBPedia (See <a href="http://dbpedia.org/">http://dbpedia.org/</a>.)</dd>

<dt class="label">[<a id="DC">DC</a>]</dt>

<dd>Dublin Core Metadata Initiative (DCMI) (See <a href="http://dublincore.org/">http://dublincore.org/</a>.)</dd>

<dt class="label">[<a id="FOAF-PROJECT">FOAF-PROJECT</a>]</dt>

<dd>The FOAF Project (See <a href="http://www.foaf-project.org">http://www.foaf-project.org</a>.)</dd>

<dt>[<a id="ref_GRDDL" class="normref">GRDDL</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2007/REC-grddl-20070911/">Gleaning Resource Descriptions from Dialects of Languages (GRDDL)</a></cite>, W3C Recommendation, D. Connolly, <i><abbr title= 
"editors">ed.</abbr></i>, 11 September 2007.<br />
Available at: http://www.w3.org/TR/2007/REC-grddl-20070911</dd>

<dt>[<a id="ref_HTML4" class="normref">HTML4</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/1999/REC-html401-19991224">HTML 4.01 Specification</a></cite>", W3C Recommendation, D. Raggett <i lang="la" xml:lang="la">et al.</i>, <i><abbr title=
"editors">eds.</abbr></i>, 24 December 1999.<br />
Available at: http://www.w3.org/TR/1999/REC-html401-19991224</dd>

<dt class="label" id="ref_MICROFORMATS">[MICROFORMATS]</dt>

<dd>See <a href="http://microformats.org">microformats.org</a>.</dd>

<dt class="label">[<a id="RDFHTML">RDFHTML</a>]</dt>

<dd>RDF-in-HTML Task Force (See <a href="http://www.w3.org/2001/sw/BestPractices/HTML/">http://www.w3.org/2001/sw/BestPractices/HTML/</a>.)</dd>

<dt class="label">[<a id="ref_RDFaPRIMER">RDFa Primer</a>]</dt>

<dd>RDFa Primer 1.0 - Embedding Structured Data in Web Pages (see <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">http://www.w3.org/TR/xhtml-rdfa-primer/</a>.)</dd>

<dt class="label">[<a id="ref_RDF-CONCEPTS">RDF-CONCEPTS</a>]</dt>

<dd>Resource Description Framework (RDF): Concepts and Abstract Syntax (See <a href="http://www.w3.org/TR/rdf-concepts/">http://www.w3.org/TR/rdf-concepts/</a>.)</dd>

<dt class="label">[<a id="ref_RDF-PRIMER">RDF-PRIMER</a>]</dt>

<dd>RDF Primer (See <a href="http://www.w3.org/TR/rdf-primer/">http://www.w3.org/TR/rdf-primer/</a>.)</dd>

<dt class="label">[<a id="ref_RDF-SYNTAX">RDF-SYNTAX</a>]</dt>

<dd>RDF/XML Syntax and Grammar (See <a href="http://www.w3.org/TR/rdf-syntax-grammar/">http://www.w3.org/TR/rdf-syntax-grammar/</a>.)</dd>

<dt class="label">[<a id="RDFTESTS-DATATYPES-TEST001">RDFTESTS-DATATYPES-TEST001</a>]</dt>

<dd>datatypes/test001.nt (See <a href="http://www.w3.org/2000/10/rdf-tests/rdfcore/datatypes/test001.nt">http://www.w3.org/2000/10/rdf-tests/rdfcore/datatypes/test001.nt</a>.)</dd>

<dt class="label">[<a id="RDFTESTS-RDFMS-XMLLANG-TEST006">RDFTESTS-RDFMS-XMLLANG-TEST006</a>]</dt>

<dd>rdfms-xmllang/test006.nt (See <a href="http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xmllang/test006.nt">http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xmllang/test006.nt</a>.)</dd>

<dt class="label">[<a id="ref_RELAXNG">RELAXNG</a>]</dt>

<dd>RELAX NG Home Page (See <a href="http://www.relaxng.org/">http://www.relaxng.org/</a>.)</dd>

<dt class="label">[<a id="SWD-WG">SWD-WG</a>]</dt>

<dd>Semantic Web Deployment Working Group (See <a href="http://www.w3.org/2006/07/SWD/">http://www.w3.org/2006/07/SWD/</a>.)</dd>

<dt>[<a id="ref_TURTLE" class="ref">TURTLE</a>]</dt>

<dd><cite><a href="http://www.w3.org/TeamSubmission/turtle/">Turtle: Terse RDF Triple Language</a></cite>, David Beckett, Tim Berners-Lee, January 2008.<br />
 See: http://www.w3.org/TeamSubmission/turtle/</dd>

<dt>[<a id="ref_XHTML11">XHTML 1.1</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2001/REC-xhtml11-20010531/">XHTML 1.1 - Module-based XHTML</a></cite>", W3C Recommendation, M. Altheim, S. McCarron, 31 May 2001.<br />
Available at: <a href="http://www.w3.org/TR/2001/REC-xhtml11-20010531/">http://www.w3.org/TR/2001/REC-xhtml11-20010531/</a>.</dd>

<dt class="label">[<a id="XHTML2-WG">XHTML2-WG</a>]</dt>

<dd>XHTML 2 Working Group (See <a href="http://www.w3.org/MarkUp/">http://www.w3.org/MarkUp/</a>.)</dd>

<dt>[<a id="ref_XHTMLMIME">XHTMLMIME</a>]</dt>

<dd>"<cite><a href="http://www.w3.org/TR/2002/NOTE-xhtml-media-types-20020801">XHTML Media Types</a></cite>", Masayasu Ishikawa, 1 August 2002.<br />
<a href="http://www.w3.org/TR/xhtml-media-types">Latest version</a> available at: http://www.w3.org/TR/xhtml-media-types</dd>

<dt>[<a id="ref_XHTMLVOCAB">XHTMLVOCAB</a>]</dt>

<dd>"<a href="http://www.w3.org/1999/xhtml/vocab">XHTML Vocabulary</a>", XHTML 2 Working Group.<br />
Available at: http://www.w3.org/1999/xhtml/vocab</dd>
</dl>

<!--OddPage-->
<h1><a id="a_history" name="a_history">E. Change History</a></h1>

<p><em>This section is informative.</em></p>

<p>2008-06-03: Added informative section on XHTML Fragments. Also ensured that we say "namespace" when we mean XML Namespace, and "prefix" when we mean the front part of a CURIE. [ShaneMcCarron]</p>

<p>2008-05-15: Moved section on bnode references in CURIEs into Chapter 5 (which is normative). Also fixed some term definitions that referred to "document" to refer to "resource".
[ShaneMcCarron]</p>

<p>2008-05-12: Changed processing rules 4 and 5 to look for the presence of @rel and @rev, rather than whether they have valid values. That is checked later. [MarkBirbeck]</p>

<p>2008-05-09: Removed reference to "reserved values" in the context of <span class="aref">@about</span>: about does not take reserved values. [ShaneMcCarron]</p>

<p>2008-05-08: Added informative reference to the XHTML Vocabulary definition document. [ShaneMcCarron]</p>

<p>2008-05-01: Changed datatype name from URIorCURIE to URIorSafeCURIE. Added datatype implementation in Appendix B. Added text about preferring inline content to @content so you do not lose ability
to have rich markup. [ShaneMcCarron]</p>

<p>2008-04-29: Changed processing rules so as to allow the generation of triples that have objects which are bnodes, even if those bnodes never appear in a triple as a subject. [MarkBirbeck]</p>

<p>2008-04-28: The processing rules have been updated so that elements that do not contain any RDFa attributes have no effect. At one point this step omitted to check for <span class="aref">
@property</span>, meaning that elements that contained <em>only</em> <span class="aref">@property</span> were being ignored. [MarkBirbeck]</p>

<p>2008-04-03: Changed <code>instanceof</code> to <span class="aref">@typeof</span>. [ShaneMcCarron]</p>

<p>2008-01-23: Updated to reflect latest task-force thinking re- the processing of legacy values in <span class="aref">@rel</span> and <span class="aref">@rev</span>. As part of this work, made the
whole processing of CURIEs and URIs much clearer. [MarkBirbeck]</p>

<p>2008-01-03: Updated to reflect latest task-force thinking re- the processing model, in particular regarding 'chaining', and the behaviour of <code>instanceof</code>. [MarkBirbeck]</p>

<p>2007-10-19: Updated to reflect latest task-force thinking re: processing model. Integrated XHTML Module definition and hybrid markup language. Completed development as First Public Working Draft.
[ShaneMcCarron], [MarkBirbeck]</p>

<p>2007-09-04: Migrated to XHTML 2 Working Group Publication System. Converted to a format that is consistent with REC-Track documents. Updated to reflect current processing model. Added normative
definition of CURIEs. Started updating prose to be consistent with current task force agremeents. [ShaneMcCarron], [StevenPemberton], [MarkBirbeck]</p>

<p>2007-04-06: fixed some of the language to talk about "structure" rather than metadata. Added note regarding space-separated values in predicate-denoting attributes. [BenAdida]</p>

<p>2006-01-16: made the use of CURIE type for <span class="aref">@rel</span>, <span class="aref">@rev</span>, <span class="aref">@property</span> consistent across document (particularly section 2.4
was erroneous). [BenAdida]</p>

<!--OddPage-->
<h1><a id="a_acks" name="a_acks">F. Acknowledgments</a></h1>

<p><em>This section is informative.</em></p>

<p>At the time of publication, the members of the Semantic Web Deployment Working Group were:</p>

<ul>
<li>Ben Adida, Creative Commons (RDFa Task Force Convener)</li>

<li>Thomas Baker, Kompetenzzentrum Interoperable Metadaten (KIM) (Co-Chair)</li>

<li>Sean Bechhofer, University of Manchester</li>

<li>Diego Berrueta, Fundaci&#243;n CTIC</li>

<li>Jeremy Carroll, TopQuadrant</li>

<li>Michael Hausenblas, K-Space</li>

<li>Antoine Isaac, Vrije Universiteit</li>

<li>Elisa Kendall, Sandpiper Software, Inc.</li>

<li>Alistair Miles, Science &amp; Technology Facilities Council</li>

<li>Vit Novacek, DERI Galway at the National University of Ireland</li>

<li>Simone Onofri, International Webmasters Association / HTML Writers Guild (IWA-HWG)</li>

<li>Jon Phipps, Invited Expert</li>

<li>Clay Redding, Library of Congress</li>

<li>Quentin Reul, University of Aberdeen</li>

<li>Daniel Rubin, Stanford University</li>

<li>Guus Schreiber, Vrije Universiteit (Co-Chair)</li>

<li>Margherita Sini, UN Food and Agriculture Organization (Invited Expert)</li>

<li>Manu Sporny, Digital Bazaar (Invited Expert)</li>

<li>Ed Summers, Library of Congress</li>

<li>Ralph Swick, W3C</li>
</ul>

<p>At the time of publication, the members in the XHTML 2 Working Group were:</p>

<ul>
<li>Roland Merrick, <acronym title="International Business Machines">IBM</acronym> (<acronym title="Extensible HyperText Markup Language">XHTML</acronym> 2 Working Group Co-Chair)</li>

<li>Steven Pemberton, <acronym title="Centrum voor Wiskunde en Informatica" xml:lang="nl">CWI</acronym> (<acronym title="Extensible HyperText Markup Language">XHTML</acronym> 2 Working Group
Co-Chair)</li>

<li>Mark Birbeck, webBackplane (Invited Expert)</li>

<li>Susan Borgrink, Progeny Systems</li>

<li>Christina Bottomley, Society for Technical Communication (STC)</li>

<li>Alessio Cartocci, International Webmasters Association / HTML Writers Guild (IWA-HWG)</li>

<li>Alexander Graf, University of Innsbruck</li>

<li>Tina Holmboe, Greytower Technologies (Invited Expert)</li>

<li>John Kugelman, Progeny Systems</li>

<li>Luca Mascaro, International Webmasters Association / HTML Writers Guild (IWA-HWG)</li>

<li>Shane McCarron, Applied Testing and Technology, Inc. (Invited Expert)</li>

<li>Michael Rawling, IVIS Group Limited</li>

<li>Gregory Rosmaita, Invited Expert</li>

<li>Sebastian Schnitzenbaumer, Dreamlab Technologies AG</li>

<li>Richard Schwerdtfeger, <acronym title="International Business Machines">IBM</acronym></li>

<li>Elias Torres, <acronym title="International Business Machines">IBM</acronym></li>

<li>Masataka Yakura, Mitsue-Links Co., Ltd.</li>

<li>Toshihiko Yamakami, ACCESS Co., Ltd.</li>
</ul>
</body>
</html>