From b23a38d506e107ab7f6c543e6da7511663762804 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Fri, 10 Jul 2020 13:00:32 -0700 Subject: [PATCH 1/2] Don't assume term will respond do `#property?`, as it may not be a Term, but a URI. --- examples/ogp-example.html | 44 ++++++++++++++++++++++++++++++++++ lib/rdf/reasoner/extensions.rb | 2 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 examples/ogp-example.html diff --git a/examples/ogp-example.html b/examples/ogp-example.html new file mode 100644 index 0000000..c060d58 --- /dev/null +++ b/examples/ogp-example.html @@ -0,0 +1,44 @@ + + +The Rock (1996) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +... + diff --git a/lib/rdf/reasoner/extensions.rb b/lib/rdf/reasoner/extensions.rb index bccc680..c62f966 100644 --- a/lib/rdf/reasoner/extensions.rb +++ b/lib/rdf/reasoner/extensions.rb @@ -264,7 +264,7 @@ def lint end # Must be a defined property - if term && term.property? + if term.respond_to?(:property?) && term.property? # Warn against using a deprecated term superseded = term.attributes[:'schema:supersededBy'] superseded = superseded.pname if superseded.respond_to?(:pname) From 3682d39b2cc9a28836d486eafbe18fa22d1c4a2c Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Fri, 10 Jul 2020 13:32:40 -0700 Subject: [PATCH 2/2] Version 0.6.2. --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ee6cdce..b616048 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.1 +0.6.2