Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 06 20:46

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 06 20:46
    dependabot[bot] closed #419
  • May 06 20:46
    dependabot[bot] commented #419
  • May 06 20:46
    dependabot[bot] labeled #438
  • May 06 20:46
    dependabot[bot] opened #438
  • May 06 20:46

    dependabot[bot] on npm_and_yarn

    Bump lodash from 4.17.11 to 4.1… (compare)

  • May 06 18:43
    dependabot[bot] labeled #437
  • May 06 18:43
    dependabot[bot] opened #437
  • May 06 18:43

    dependabot[bot] on npm_and_yarn

    Bump url-parse from 1.4.4 to 1.… (compare)

  • May 06 17:27
    dependabot[bot] labeled #436
  • May 06 17:27
    dependabot[bot] opened #436
  • May 06 17:27

    dependabot[bot] on npm_and_yarn

    Bump handlebars from 4.7.6 to 4… (compare)

  • Apr 30 19:28
    dependabot[bot] labeled #435
  • Apr 30 19:28
    dependabot[bot] opened #435
  • Apr 30 19:28

    dependabot[bot] on npm_and_yarn

    Bump ssri from 6.0.1 to 6.0.2 … (compare)

  • Apr 05 14:43
    inakijaneiro added as member
  • Mar 30 10:15
    dependabot[bot] labeled #434
  • Mar 30 10:15
    dependabot[bot] opened #434
  • Mar 30 10:14

    dependabot[bot] on npm_and_yarn

    Bump y18n from 3.2.1 to 3.2.2 … (compare)

  • Mar 08 18:47
    dependabot[bot] labeled #433
Sergio Emir Baidon Carrillo
@sbaidon
that is my code
Screen Shot 2018-01-24 at 3.51.37 PM.png
Screen Shot 2018-01-24 at 3.51.51 PM.png
those are the error messages
AlexSerrano22
@AlexSerrano22
maybe you need to set the url of your platform?
let carbon = new Carbon( "my-carbon-instance.com:8080" );
Margarita Hernandez
@mhernandeza
Hi Sergio, when instatiating a Carbon object you must provide your platform’s url and providing the http protocol is an optional argument.
andynice
@andynice
Are you using this version v1.0.x alpha of the documentation?
Alvaro
@alvaro9210
Make sure you’re reading the documentation for v1.0.x (alpha) since that version is the one with the new features
Sergio Emir Baidon Carrillo
@sbaidon
that was it, I was reading the old documentation
sorry about that :smile:
andynice
@andynice
Also, at the end, there is this section "Putting it all together" it was really helpful. I faced some issues with some examples. If I saw that at the beginning, I could have saved some time :sweat_smile:
Sergio Emir Baidon Carrillo
@sbaidon
I will take a look at it thanks!
Alex Arriaga
@alex-arriaga
Hi @roddolf the fix for the issue “Query error when compacting referenced same level documents #211” worked CarbonLDP/carbonldp-js-sdk#211 thank you
Rodolfo Aguirre
@roddolf
Great, thanks for the response
Miguel Aragón
@MiguelAraCo
@andynice that is a good idea. I've seen that some documentations do that. They present you first what you'll end up with and then explain it piece by piece. We'll consider doing it :smile:
Miguel Aragón
@MiguelAraCo

We've just released a new version of the SDK: 1.0.0-alpha.9. Please update your projects to use it.

This version includes the fix for bug #211 plus other improvements/minor fixes.

Alex Arriaga
@alex-arriaga
Thank you @MiguelAraCo
AlexSerrano22
@AlexSerrano22
Hi guys I open an issue/question #215
Alex Arriaga
@alex-arriaga
There is also this issue CarbonLDP/carbonldp-js-sdk#217 about reading nested documents
AlexSerrano22
@AlexSerrano22

hi guys I have a question: I'm working with getMembers to do a query to a document and his related documents like this:

carbon.documents.getMembers('/skills/',
          _ => _.withType(`${CarbonService.CONTEXT_URL}#Skill`).properties({
            '@id': _.inherit,
            'name': _.inherit,
            'skillLevels': {
              'query': _ => _
                .withType(`${CarbonService.CONTEXT_URL}#SkillLevel`)
                .properties({'name': _.inherit})
                **.orderBy( "name", "ascending" )**
            }
          })

because I want my skill levels to be orderly by his name. but I receive an error properties(...).orderBy is not a function but if I change the .orderBy to the first .properties this works, but how can I indicate that I want my skill levels to be orderly on this level e.g:

carbon.documents.getMembers('/skills/',
          _ => _.withType(`${CarbonService.CONTEXT_URL}#Skill`).properties({
            '@id': _.inherit,
            'name': _.inherit,
            'skillLevels': {
              'query': _ => _
                .withType(`${CarbonService.CONTEXT_URL}#SkillLevel`)
                .properties({'name': _.inherit})
            }
          }).orderBy("skillLevels", "ascending" ))

I will open an issue/question on github btw

thanks

#218
Rodolfo Aguirre
@roddolf
@AlexSerrano22 As you have notice, the order function is only avialable in the first level.
Sub-properties do not support ordering, you would need to do it in the client.
AlexSerrano22
@AlexSerrano22
ok thanks rodo, I thought that maybe we can do it with some extra parameter or something. but thanks
Miguel Aragón
@MiguelAraCo
We just released a new version of the SDK that fixes a couple of issues: v1.0.0-alpha.10. Please update if you are using the ALPHA line
Alex Arriaga
@alex-arriaga
Hello guys, just for further reference the issue with the ReferenceError: global is not defined for Angular 7.x-based app is solved by following this instruction, as described in this issue CarbonLDP/carbonldp-js-sdk#327:
// Add the following line to polyfills.ts will fix the problem:
// Add global to window, assigning the value of window itself.
(window as any).global = window;
Alex Arriaga
@alex-arriaga
Hello Carbon LDP team, I was setting up a fresh React application with latest version of create-react-app with TypeScript , however I am getting this error when trying to import CarbonLDP package: CarbonLDP/carbonldp-js-sdk#335
RangeError: Maximum call stack size exceeded
    at resolveNameHelper (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:31831:35)
    at resolveName (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:31829:20)
    at resolveEntityName (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:32680:26)
    at resolveTypeReferenceName (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:38485:20)
    at getTypeFromTypeReference (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:38670:30)
    at getTypeFromTypeNode (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:40178:28)
    at getConstraintFromTypeParameter (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:38328:72)
    at fillMissingTypeArguments (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:37877:49)
    at getTypeFromClassOrInterfaceReference (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:38429:78)
    at getTypeReferenceTypeWorker (/Users/alex/Sites/projects/carbonldp-demo-app/node_modules/typescript/lib/typescript.js:38559:24)
RangeError: Maximum call stack size exceeded
I built a minimal example reproducing this error in this git repository: https://github.com/webtraining-zone/carbonldp-demo-app
Alex Arriaga
@alex-arriaga

FYI:

I have to use "typescript": "3.1.6" and...
The configuration with "lib": ["es5", "es2015", "dom"] and strict to false, here is my tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "allowJs": true,
    "skipLibCheck": false,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": false,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve",
    "lib": ["es5", "es2015", "dom"]
  },
  "include": [
    "src"
  ]
}