Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Mar 08 18:47
    dependabot[bot] opened #433
  • Mar 08 18:47

    dependabot[bot] on npm_and_yarn

    Bump elliptic from 6.5.3 to 6.5… (compare)

  • Mar 02 14:10
    jumokee removed as member
  • Mar 01 21:24
    dependabot[bot] labeled #432
  • Mar 01 21:24
    dependabot[bot] opened #432
  • Mar 01 21:24

    dependabot[bot] on npm_and_yarn

    Bump prismjs from 1.21.0 to 1.2… (compare)

  • Feb 26 01:05

    mhernandeza on #431_parse-document-modified-event-details

    Implement initial DocumentModif… (compare)

  • Feb 25 18:56
    mhernandeza labeled #431
  • Feb 25 18:56
    mhernandeza opened #431
  • Feb 25 16:52

    mhernandeza on #307_loosen-relationship-between-exposed-and-data-domain

    (compare)

  • Feb 25 16:52

    mhernandeza on master

    Extend CarbonLDPSettings object… (compare)

  • Feb 25 16:52
    mhernandeza closed #430
Alex Arriaga
@alex-arriaga
We think the export/import process would not be compatible between legacy versions and the newest Alpha, right?
Miguel Aragón
@MiguelAraCo
Yes, the import/export mechanism we had on the previous version isn't compatible with the new one
There's no migration path yet
Manually importing/exporting it is the only approach as of now
Alex Arriaga
@alex-arriaga
Got it.
Alex Arriaga
@alex-arriaga
—> (deleted to place it in carbondlp channel instead)
Alex Arriaga
@alex-arriaga
Another question: I read somewhere Carbon LDP will provide some real time capabilities; is that still in development? Or can we use right away with the JavaScript SDK?
Alex Arriaga
@alex-arriaga
:ok_hand:
Miguel Aragón
@MiguelAraCo
My advise for users that have used previous versions of Carbon would be: read all the documentation again. A lot of things have changed
AlexSerrano22
@AlexSerrano22
Hi guy, I'm trying to create a project with a custom schema but I'm missing a dateTime value when the document is created on carbon, this is an example of my code:
carbonSchemas.PROJECT = {
    "forecastID": {
      "@id": "tms:forecastID",
      "@type": "string"
    },
    "name": {
      "@id": "https://schema.org/name",
      "@type": "string"
    },
    "updatedDate": {
      "@id": "tms:updatedDate",
      "@type": "dateTime"
    }
}
carbon.extendObjectSchema(`${CONTEXT_URL}#ForecastProject`, carbonSchemas.PROJECT);

let project = {
          "forecastID": "XXXXX",
          "color": "orange",
          "name": "someName",
          "updatedDate": "2018-01-17T04:14:54.150Z",
          "types": ["http://tms.base22.com/ns#ForecastProject"]
        }
carbon.documents.createChild("/projects/", project )...
Alex Arriaga
@alex-arriaga
Maybe the “updatedDate” needs to be an actual Date JavaScript object?
AlexSerrano22
@AlexSerrano22
ok let me try
Alex Arriaga
@alex-arriaga
let project = {
          "forecastID": "XXXXX",
          "color": "orange",
          "name": "someName",
          "updatedDate": new Date(),
          "types": ["http://tms.base22.com/ns#ForecastProject"]
        }
Rodolfo Aguirre
@roddolf
Yes, Alex Arriaga is right, the value needs to be a Date object
AlexSerrano22
@AlexSerrano22
cool, thanks @alex-arriaga and @roddolf
Alex Arriaga
@alex-arriaga
:ok_hand:
AlexSerrano22
@AlexSerrano22

Hello, I'm trying to add a type to a document but I'm receiving a 400 error code, Error: The attempt of parsing the request's body failed
this is the request response:

[{"@id":"_:node1c40v47nrx16996","@type":["https://carbonldp.com/ns/v1/platform#ErrorResponse"],"https://carbonldp.com/ns/v1/platform#error":[{"@id":"_:node1c40v47nrx16997"}],"https://carbonldp.com/ns/v1/platform#httpStatusCode":[{"@type":"http://www.w3.org/2001/XMLSchema#int","@value":"400"}],"https://carbonldp.com/ns/v1/platform#requestID":[{"@value":"32b1cdcc-5d3b-4901-9da2-e08b9eb58a60"}]},{"@id":"_:node1c40v47nrx16997","@type":["https://carbonldp.com/ns/v1/platform#Error"],"https://carbonldp.com/ns/v1/platform#errorCode":[{"@value":"0x6970"}],"https://carbonldp.com/ns/v1/platform#errorMessage":[{"@language":"es","@value":"The attempt of parsing the request's body failed"}],"https://carbonldp.com/ns/v1/platform#errorParameters":[{"@id":"_:node1c40v47nrx16998"}]},{"@id":"_:node1c40v47nrx16998","@type":["https://carbonldp.com/ns/v1/platform#Map"],"https://carbonldp.com/ns/v1/platform#entry":[{"@id":"_:node1c40v47nrx16999"},{"@id":"_:node1c40v47nrx17000"},{"@id":"_:node1c40v47nrx17001"}]},{"@id":"_:node1c40v47nrx16999","https://carbonldp.com/ns/v1/platform#key":[{"@value":"column"}],"https://carbonldp.com/ns/v1/platform#value":[{"@type":"http://www.w3.org/2001/XMLSchema#int","@value":"57"}]},{"@id":"_:node1c40v47nrx17000","https://carbonldp.com/ns/v1/platform#key":[{"@value":"parserErrorMessage"}],"https://carbonldp.com/ns/v1/platform#value":[{"@value":"Encountered \" <IRI> \"<http://tms.base22.com/ns#ForecastPerson> \"\" at line 1, column 57.\nWas expecting:\n    \":\" ...\n    "}]},{"@id":"_:node1c40v47nrx17001","https://carbonldp.com/ns/v1/platform#key":[{"@value":"line"}],"https://carbonldp.com/ns/v1/platform#value":[{"@type":"http://www.w3.org/2001/XMLSchema#int","@value":"1"}]}]

and this is my code:

carbon.documents.get("users/").then(( [ user, response ] ) => {
         user.addType("http://tms.base22.com/ns#ForecastPerson");
         return user.save();
      }).then(
        ( [ user, response ] ) => {
          console.log(user);
        }
      ).catch( console.error );

and my request payload is:
Add { <http://carbonldp.webtraining.zone:8083/users/> a <http://tms.base22.com/ns#ForecastPerson>. }.

I saw that the error is because the parser encountered <IRI>, my question is: can't I add a custom type? or which is the format for add a type with the function addType?

Miguel Aragón
@MiguelAraCo
Your code isn't wrong. It seems to be an issue with the platform. What platform version are you running?
AlexSerrano22
@AlexSerrano22
latest, 1.0.0-alpha.7
do you like that open an issue on github?
Miguel Aragón
@MiguelAraCo
AlexSerrano22
@AlexSerrano22
CarbonLDP/carbonldp-platform#7
Miguel Aragón
@MiguelAraCo
Thanks :+1:
Alex Arriaga
@alex-arriaga

Hello, good morning;

Is there any way to mark a property in my schema as optional or not required?

I am receiving this error message: Uncaught (in promise) Error: Schema path "child.mentors.mentees" does not exists. and that is because not all my documents have mentees; I am using the method:

this._carbon.documents.getChildren( "/users/" )
We have tried with required : false and optional: true
"mentees": {
      "@id": "tms:mentee",
      "@type": "@id",
      "@container": "@set",
      "required" : false,
      "optional" : true
    },
Rodolfo Aguirre
@roddolf
Every property is always optional, until you apply a filter on it.
But the error, is throwing because it’s not finding a property in the path mentors.mentees.
Can you provide more information of your query?
Alex Arriaga
@alex-arriaga
It is a regular getChildren call
retrieveResolvedChildren: async function(parentDocumentURL){
    let [ children , response ] = await this._carbon.documents.getChildren( parentDocumentURL );
    return children;
  }
CarbonService.retrieveResolvedChildren('/users/').then((documents) => {
      this.users = documents
      console.log(this.users)
    })
Rodolfo Aguirre
@roddolf
What would be structure of a user?
mentors is a document/fragment?
AlexSerrano22
@AlexSerrano22
Rodolfo Aguirre
@roddolf
An issue has been oppend for this error: #211
Alex Arriaga
@alex-arriaga
:ok:
:)
AlexSerrano22
@AlexSerrano22
@roddolf if it is helpful I detected that this specific user cause the error, http://carbonldp.webtraining.zone:8083/users/3901470279768263919/
Sergio Emir Baidon Carrillo
@sbaidon
Hello guys, I'm trying to get started with the carbon js sdk but I'm having an issue when I'm try to create the platform context
carbon (1).png
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: