File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ function Get-JsonLD {
12
12
.EXAMPLE
13
13
# Want information about an article? Lots of news sites use this format.
14
14
Get-JsonLD https://www.thebulwark.com/p/mahmoud-khalil-immigration-detention-first-amendment-free-speech-rights
15
+ .EXAMPLE
16
+ # Want to get information about a schema?
17
+ jsonld https://schema.org/Movie
18
+ # Get-JSONLD will output the contents of a `@Graph` object if no `@type` is found.
15
19
#>
16
20
[Alias('jsonLD','json-ld')]
17
21
param(
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ describe 'JSON-LD' {
7
7
8
8
}
9
9
it 'can get information a schema' {
10
- $result = Get-JsonLD -Url 'https://schema.org/Movie'
11
- $result.'@graph' | Should -Not -BeNullOrEmpty
10
+ Get-JsonLD https://schema.org/Movie |
11
+ Select-Object -ExpandProperty pstypenames -Unique |
12
+ Should -Contain 'rdf:Property'
12
13
}
13
14
}
14
15
}
You can’t perform that action at this time.
0 commit comments