@@ -2329,7 +2329,7 @@ <h3>Overview</h3>
2329
2329
it is relative to < tref title ="active context "> active context's</ tref >
2330
2330
< tref > vocabulary mapping</ tref > . In order to select the most appropriate
2331
2331
< tref > term</ tref > , we may have to collect information about the passed
2332
- < i > value</ i > . This information includes whic
2332
+ < i > value</ i > . This information includes which
2333
2333
< tref title ="container mapping "> container mappings</ tref >
2334
2334
would be preferred for expressing the < i > value</ i > , and what its
2335
2335
< tref > type mapping</ tref > or < tref > language mapping</ tref > is. For
@@ -2341,11 +2341,11 @@ <h3>Overview</h3>
2341
2341
return the most appropriate < tref > term</ tref > to use.</ p >
2342
2342
2343
2343
< p > If no < tref > term</ tref > was found that could be used to compact the
2344
- < tref > IRI</ tref > , then an attempt is made to find a < tref > compact IRI</ tref >
2345
- to use. If there is no appropriate < tref > compact IRI </ tref > , then, if
2346
- the < tref > IRI</ tref > is relative to
2347
- < tref title =" active context " > active context's </ tref >
2348
- < tref > vocabulary mapping </ tref > , then it is used. Otherwise, it is
2344
+ < tref > IRI</ tref > , an attempt is made compact the < tref > IRI</ tref > using the
2345
+ < tref title =" active context " > active context's </ tref > < tref > vocabulary mapping </ tref > ,
2346
+ if there is one. If the < tref > IRI</ tref > could not be compacted, an
2347
+ attempt is made to find a < tref > compact IRI </ tref > . If there is no
2348
+ appropriate < tref > compact IRI </ tref > , the < tref > IRI </ tref > is
2349
2349
transformed to a < tref > relative IRI</ tref > using the document's
2350
2350
< tref > base IRI</ tref > . Finally, if the < tref > IRI</ tref > or
2351
2351
< tref > keyword</ tref > still could not be compacted, it is returned
@@ -2512,10 +2512,23 @@ <h3>Algorithm</h3>
2512
2512
</ ol >
2513
2513
</ li >
2514
2514
< li > At this point, there is no simple < tref > term</ tref > that < i > iri</ i >
2515
- can be compacted to. Instead, try to create a < tref > compact IRI</ tref > ,
2516
- starting by initializing < i > compact IRI</ i > to < tref > null</ tref > . This
2517
- variable will be used to store the created < tref > compact IRI</ tref > , if
2518
- any.</ li >
2515
+ can be compacted to. If < i > vocab</ i > is < tref > true</ tref > and
2516
+ < tref > active context</ tref > has a < tref > vocabulary mapping</ tref > :
2517
+ < ol class ="algorithm ">
2518
+ < li > If < i > iri</ i > begins with the
2519
+ < tref title ="vocabulary mapping "> vocabulary mapping's</ tref > value
2520
+ but is longer, then initialize < i > suffix</ i > to the substring
2521
+ of < i > iri</ i > that does not match. If < i > suffix</ i > does not
2522
+ have a < tref > term definition</ tref > in < tref > active context</ tref > ,
2523
+ then return < i > suffix</ i > .</ li >
2524
+ </ ol >
2525
+ </ li >
2526
+ < li > The < i > iri</ i > could not be compacted using the
2527
+ < tref title ="active context "> active context's</ tref > < tref > vocabulary mapping</ tref > .
2528
+ Try to create a < tref > compact IRI</ tref > , starting by initializing
2529
+ < i > compact IRI</ i > to < tref > null</ tref > . This variable will be used to
2530
+ tore the created < tref > compact IRI</ tref > , if any.</ li >
2531
+ </ li >
2519
2532
< li > For each key < tref > term</ tref > and value < tref > term definition</ tref > in
2520
2533
the < tref > active context</ tref > :
2521
2534
< ol class ="algorithm ">
@@ -2544,19 +2557,6 @@ <h3>Algorithm</h3>
2544
2557
</ ol >
2545
2558
</ li >
2546
2559
< li > If < i > compact IRI</ i > is not < tref > null</ tref > , return < i > compact IRI</ i > .</ li >
2547
- < li > At this point, there is no < tref > compact IRI</ tref > that < i > iri</ i >
2548
- can be compacted to, so if < i > vocab</ i > is
2549
- < tref > true</ tref > and < tref > active context</ tref > has a
2550
- < tref > vocabulary mapping</ tref > :
2551
- < ol class ="algorithm ">
2552
- < li > If < i > iri</ i > begins with the
2553
- < tref title ="vocabulary mapping "> vocabulary mapping's</ tref > value
2554
- but is longer, then initialize < i > suffix</ i > to the substring
2555
- of < i > iri</ i > that does not match. If < i > suffix</ i > does not
2556
- have a < tref > term definition</ tref > in < tref > active context</ tref > ,
2557
- then return < i > suffix</ i > .</ li >
2558
- </ ol >
2559
- </ li >
2560
2560
< li > If < i > vocab</ i > is < tref > false</ tref > then
2561
2561
transform < i > iri</ i > to a < tref > relative IRI</ tref > using
2562
2562
the document's base < tref > IRI</ tref > .</ li >
0 commit comments