Skip to content

Refactor and implement IRIs #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Apr 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
3a31824
Initial outline for dedicated IRI class
bivens-dev Apr 5, 2025
bd10ea3
Further implementation of dedicated IRI class
bivens-dev Apr 5, 2025
c03db94
Rename IRI class to IRITerm to better reflect its core role
bivens-dev Apr 5, 2025
affd7c9
Early stage outline of an alternative approach to implementing IRI da…
bivens-dev Apr 5, 2025
2a7f337
Add helper method to percent encode characters that is needed for var…
bivens-dev Apr 5, 2025
ef1c316
Implement core IRI parsing algorithms
bivens-dev Apr 5, 2025
1322541
Update _convertToUri to use the hostType and hostNormalized from the …
bivens-dev Apr 5, 2025
d6a51e9
Remove initial IRI implementation attempt
bivens-dev Apr 6, 2025
a98e70f
WIP: New IRI implementation
bivens-dev Apr 6, 2025
03017c8
Update test references for IRITerm
bivens-dev Apr 6, 2025
8da40ee
Implement IRI equality using unicode codepoint simple string comparis…
bivens-dev Apr 6, 2025
ea4604a
Implement the toString method on the IRI class and update the class a…
bivens-dev Apr 6, 2025
40f367f
Correctly handle turning URIs back into IRIs
bivens-dev Apr 6, 2025
4ac5871
Comment out failing tests for now
bivens-dev Apr 6, 2025
a81f34f
Update the hashcode to use the toString method on the IRI class
bivens-dev Apr 6, 2025
372cb52
Migrate IRITerm class to use IRI remove tests that no longer make sense.
bivens-dev Apr 6, 2025
dc7cf02
Ensure we use the IRI hashcode for equality in the IRITerm class
bivens-dev Apr 6, 2025
b79629f
Regenerate docs
bivens-dev Apr 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions doc/api/__404error.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,14 @@
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button" title="Toggle brightness">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined">
light_mode
</span>
</label>
</div>
<button class="toggle" id="theme-button" title="Toggle between light and dark mode" aria-label="Light and dark mode toggle">
<span id="dark-theme-button" class="material-symbols-outlined" aria-hidden="true">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined" aria-hidden="true">
light_mode
</span>
</button>
</header>
<main>
<div id="dartdoc-main-content" class="main-content">
Expand Down Expand Up @@ -69,7 +66,7 @@ <h1>404: Something's gone wrong :-(</h1>
<h5><span class="package-name">rdf_dart</span> <span class="package-kind">package</span></h5>
<ol>
<li class="section-title">Libraries</li>
<li><a href="rdf_dart">rdf_dart</a></li>
<li><a href="rdf_dart/">rdf_dart</a></li>
</ol>

</div>
Expand Down
23 changes: 10 additions & 13 deletions doc/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,14 @@
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button" title="Toggle brightness">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined">
light_mode
</span>
</label>
</div>
<button class="toggle" id="theme-button" title="Toggle between light and dark mode" aria-label="Light and dark mode toggle">
<span id="dark-theme-button" class="material-symbols-outlined" aria-hidden="true">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined" aria-hidden="true">
light_mode
</span>
</button>
</header>
<main>
<div id="dartdoc-main-content" class="main-content">
Expand Down Expand Up @@ -147,7 +144,7 @@ <h2 id="usage">Usage</h2>
<h2>Libraries</h2>
<dl>
<dt id="rdf_dart">
<span class="name"><a href="rdf_dart">rdf_dart</a></span>
<span class="name"><a href="rdf_dart/">rdf_dart</a></span>

</dt>
<dd>Support for working with RDF (Resource Description Framework) data in Dart.
Expand All @@ -170,7 +167,7 @@ <h2>Libraries</h2>
<h5 class="hidden-xs"><span class="package-name">rdf_dart</span> <span class="package-kind">package</span></h5>
<ol>
<li class="section-title">Libraries</li>
<li><a href="rdf_dart">rdf_dart</a></li>
<li><a href="rdf_dart/">rdf_dart</a></li>
</ol>

</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/index.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions doc/api/rdf_dart/BlankNode-class-sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ol>

<li class="section-title"><a href="rdf_dart/BlankNode-class.html#constructors">Constructors</a></li>
<li><a href="rdf_dart/BlankNode/BlankNode.html">BlankNode</a></li>
<li><a href="rdf_dart/BlankNode/BlankNode.html">new</a></li>



Expand Down Expand Up @@ -30,7 +30,7 @@
</li>

<li class="inherited">
<a href="https://api.dart.dev/stable/3.7.2/dart-core/Object/runtimeType.html">runtimeType</a>
<a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object/runtimeType.html">runtimeType</a>
</li>

<li>
Expand All @@ -40,7 +40,7 @@
<li class="section-title"><a href="rdf_dart/BlankNode-class.html#instance-methods">Methods</a></li>

<li class="inherited">
<a href="https://api.dart.dev/stable/3.7.2/dart-core/Object/noSuchMethod.html">noSuchMethod</a>
<a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object/noSuchMethod.html">noSuchMethod</a>
</li>

<li>
Expand Down
51 changes: 24 additions & 27 deletions doc/api/rdf_dart/BlankNode-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,21 @@
<span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="../index.html">rdf_dart</a></li>
<li><a href="../rdf_dart">rdf_dart.dart</a></li>
<li><a href="../rdf_dart/">rdf_dart.dart</a></li>
<li class="self-crumb">BlankNode class</li>
</ol>
<div class="self-name">BlankNode</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button" title="Toggle brightness">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined">
light_mode
</span>
</label>
</div>
<button class="toggle" id="theme-button" title="Toggle between light and dark mode" aria-label="Light and dark mode toggle">
<span id="dark-theme-button" class="material-symbols-outlined" aria-hidden="true">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined" aria-hidden="true">
light_mode
</span>
</button>
</header>
<main>
<div
Expand Down Expand Up @@ -74,7 +71,7 @@ <h1><span class="kind-class">BlankNode</span> class
<dt>Inheritance</dt>
<dd>
<ul class="gt-separated dark clazz-relationships">
<li><a href="https://api.dart.dev/stable/3.7.2/dart-core/Object-class.html">Object</a></li>
<li><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object-class.html">Object</a></li>
<li><a href="../rdf_dart/RdfTerm-class.html">RdfTerm</a></li>
<li>BlankNode</li>
</ul>
Expand All @@ -101,8 +98,8 @@ <h1><span class="kind-class">BlankNode</span> class
<section class="summary offset-anchor" id="constructors">
<h2>Constructors</h2>
<dl class="constructor-summary-list">
<dt id="BlankNode" class="callable">
<span class="name"><a href="../rdf_dart/BlankNode/BlankNode.html">BlankNode</a></span><span class="signature">([<span class="parameter" id="-param-id"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.7.2/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">id</span></span>])</span>
<dt id="BlankNode.new" class="callable">
<span class="name"><a href="../rdf_dart/BlankNode/BlankNode.html">BlankNode.new</a></span><span class="signature">([<span class="parameter" id="-param-id"><span class="type-annotation"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">id</span></span>])</span>
</dt>
<dd>
Creates a new Blank Node.
Expand All @@ -117,7 +114,7 @@ <h2>Properties</h2>
<dl class="properties">
<dt id="hashCode" class="property">
<span class="name"><a href="../rdf_dart/BlankNode/hashCode.html">hashCode</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/int-class.html">int</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/int-class.html">int</a></span>


</dt>
Expand All @@ -129,7 +126,7 @@ <h2>Properties</h2>

<dt id="id" class="property">
<span class="name"><a href="../rdf_dart/BlankNode/id.html">id</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/String-class.html">String</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/String-class.html">String</a></span>


</dt>
Expand All @@ -141,7 +138,7 @@ <h2>Properties</h2>

<dt id="isBlankNode" class="property">
<span class="name"><a href="../rdf_dart/BlankNode/isBlankNode.html">isBlankNode</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/bool-class.html">bool</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/bool-class.html">bool</a></span>


</dt>
Expand All @@ -153,7 +150,7 @@ <h2>Properties</h2>

<dt id="isIRI" class="property">
<span class="name"><a href="../rdf_dart/BlankNode/isIRI.html">isIRI</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/bool-class.html">bool</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/bool-class.html">bool</a></span>


</dt>
Expand All @@ -165,7 +162,7 @@ <h2>Properties</h2>

<dt id="isLiteral" class="property">
<span class="name"><a href="../rdf_dart/BlankNode/isLiteral.html">isLiteral</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/bool-class.html">bool</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/bool-class.html">bool</a></span>


</dt>
Expand All @@ -176,8 +173,8 @@ <h2>Properties</h2>
</dd>

<dt id="runtimeType" class="property inherited">
<span class="name"><a href="https://api.dart.dev/stable/3.7.2/dart-core/Object/runtimeType.html">runtimeType</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/Type-class.html">Type</a></span>
<span class="name"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object/runtimeType.html">runtimeType</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Type-class.html">Type</a></span>


</dt>
Expand Down Expand Up @@ -209,7 +206,7 @@ <h2>Properties</h2>
<h2>Methods</h2>
<dl class="callables">
<dt id="noSuchMethod" class="callable inherited">
<span class="name"><a href="https://api.dart.dev/stable/3.7.2/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.7.2/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
<span class="name"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
<span class="returntype parameter">&#8594; dynamic</span>
</span>

Expand All @@ -223,7 +220,7 @@ <h2>Methods</h2>

<dt id="toString" class="callable">
<span class="name"><a href="../rdf_dart/BlankNode/toString.html">toString</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/String-class.html">String</a></span>
<span class="returntype parameter">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/String-class.html">String</a></span>
</span>


Expand All @@ -243,8 +240,8 @@ <h2>Methods</h2>
<h2>Operators</h2>
<dl class="callables">
<dt id="operator ==" class="callable">
<span class="name"><a href="../rdf_dart/BlankNode/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.7.2/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
<span class="returntype parameter">&#8594; <a href="https://api.dart.dev/stable/3.7.2/dart-core/bool-class.html">bool</a></span>
<span class="name"><a href="../rdf_dart/BlankNode/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
<span class="returntype parameter">&#8594; <a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/bool-class.html">bool</a></span>
</span>


Expand All @@ -271,7 +268,7 @@ <h2>Operators</h2>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="../index.html">rdf_dart</a></li>
<li><a href="../rdf_dart">rdf_dart</a></li>
<li><a href="../rdf_dart/">rdf_dart</a></li>
<li class="self-crumb">BlankNode class</li>
</ol>

Expand Down
35 changes: 16 additions & 19 deletions doc/api/rdf_dart/BlankNode/BlankNode.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="description" content="API docs for the BlankNode constructor from Class BlankNode from the rdf_dart library, for the Dart programming language.">
<title>BlankNode constructor - BlankNode - rdf_dart library - Dart API</title>
<meta name="description" content="API docs for the BlankNode.new constructor from Class BlankNode from the rdf_dart library, for the Dart programming language.">
<title>BlankNode.new constructor - BlankNode - rdf_dart library - Dart API</title>



Expand All @@ -25,25 +25,22 @@
<span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="../../index.html">rdf_dart</a></li>
<li><a href="../../rdf_dart">rdf_dart.dart</a></li>
<li><a href="../../rdf_dart/">rdf_dart.dart</a></li>
<li><a href="../../rdf_dart/BlankNode-class.html">BlankNode</a></li>
<li class="self-crumb">BlankNode constructor</li>
<li class="self-crumb">BlankNode.new constructor</li>
</ol>
<div class="self-name">BlankNode</div>
<div class="self-name">BlankNode.new</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button" title="Toggle brightness">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined">
light_mode
</span>
</label>
</div>
<button class="toggle" id="theme-button" title="Toggle between light and dark mode" aria-label="Light and dark mode toggle">
<span id="dark-theme-button" class="material-symbols-outlined" aria-hidden="true">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined" aria-hidden="true">
light_mode
</span>
</button>
</header>
<main>
<div
Expand All @@ -57,7 +54,7 @@ <h1><span class="kind-constructor">BlankNode</span> constructor

<section class="multi-line-signature">

<span class="name ">BlankNode</span>(<wbr>[<ol class="parameter-list single-line"> <li><span class="parameter" id="-param-id"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.7.2/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">id</span></span></li>
<span class="name ">BlankNode</span>(<wbr>[<ol class="parameter-list single-line"> <li><span class="parameter" id="-param-id"><span class="type-annotation"><a href="https://api.dart.dev/dev/3.8.0-171.0.dev/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">id</span></span></li>
</ol>])
</section>

Expand All @@ -84,9 +81,9 @@ <h2><span>Implementation</span></h2>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="../../index.html">rdf_dart</a></li>
<li><a href="../../rdf_dart">rdf_dart</a></li>
<li><a href="../../rdf_dart/">rdf_dart</a></li>
<li><a href="../../rdf_dart/BlankNode-class.html">BlankNode</a></li>
<li class="self-crumb">BlankNode constructor</li>
<li class="self-crumb">BlankNode.new constructor</li>
</ol>

<h5>BlankNode class</h5>
Expand Down
Loading