-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
206 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local dap = require("dap") | ||
|
||
dap.adapters.lldb = { | ||
type = "executable", | ||
command = "/usr/bin/lldb-vscode-14", | ||
name = "lldb", | ||
} | ||
|
||
dap.configurations.rust = { | ||
{ | ||
name = "lib-rdfa", | ||
type = "lldb", | ||
request = "launch", | ||
program = function() | ||
local test_binary = vim.fn.input("Path to test binary: ", vim.fn.getcwd() .. "/target/debug/", "file") | ||
return test_binary | ||
end, | ||
cwd = "${workspaceFolder}/lib-rdfa", | ||
stopOnEntry = false, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>HTMLLiteral RDFa Example</title> | ||
</head> | ||
<body vocab="http://schema.org/" typeof="CreativeWork"> | ||
<div | ||
typeof="schema:Text" | ||
property="schema:description" | ||
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML" | ||
> | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://schema.org/>; | ||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | ||
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Text>; | ||
<http://schema.org/description> """ | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>HTMLLiteral RDFa Example</title> | ||
</head> | ||
<body vocab="http://schema.org/" typeof="CreativeWork"> | ||
<div | ||
typeof="schema:Text" | ||
property="schema:description" | ||
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral" | ||
> | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://schema.org/>; | ||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | ||
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Text>; | ||
<http://schema.org/description> """ | ||
This is a bold statement within an HTMLLiteral! | ||
RDFa supports rich content extraction. | ||
"""@en . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>HTMLLiteral RDFa Example</title> | ||
</head> | ||
<body vocab="http://schema.org/" typeof="CreativeWork" href="http://x.com/z"> | ||
<div | ||
typeof="schema:Text" | ||
property="schema:description" | ||
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral" | ||
> | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://schema.org/> . | ||
<http://x.com/z> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | ||
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Text>; | ||
<http://schema.org/description> """ | ||
This is a bold statement within an HTMLLiteral! | ||
RDFa supports rich content extraction. | ||
"""@en . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>HTMLLiteral RDFa Example</title> | ||
</head> | ||
<body vocab="http://schema.org/" typeof="CreativeWork" href="http://x.com/z"> | ||
<div | ||
typeof="schema:Text" | ||
property="schema:description" | ||
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML" | ||
> | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://schema.org/> . | ||
<http://x.com/z> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | ||
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Text>; | ||
<http://schema.org/description> """ | ||
<p>This is a <strong>bold</strong> statement within an HTMLLiteral!</p> | ||
<p>RDFa supports <em>rich content</em> extraction.</p> | ||
"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.